mirror of
https://github.com/andre-wojtowicz/uci-ml-to-r.git
synced 2024-11-03 14:20:28 +01:00
12 lines
358 B
R
12 lines
358 B
R
preprocess.dataset = function()
|
|
{
|
|
csv.file = "magic04.data"
|
|
|
|
dataset = read.csv(file.path(orig.dir, csv.file), header = FALSE)
|
|
|
|
colnames(dataset) = c("fLength", "fWidth", "fSize", "fConc", "fConc1",
|
|
"fAsym", "fM3Long", "fM3Trans", "fAlpha", "fDist",
|
|
"class")
|
|
|
|
return(dataset)
|
|
} |