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