r - Getting Error in scale.default(temp, x, FALSE) : length of 'center' must equal the number of columns of 'x' -
i trying implement lof algorithm in r using dmwr
package. dataset using wisconsin breast cancer dataset uci machine learning repository (for last column have converted 2 'benign' , 4 'malignant') , looks in csv file importing from:
"clump thickness","uniformity of cell size", "uniformity of cell shape","marginal adhesion" ,"single epithelial cell size","bare nuclei" , "bland chromatin" ,"normal nucleoli" ,"mitoses" , "class" 5,1,1,1,2,1,3,1,1,benign 5,4,4,5,7,10,3,2,1,benign 3,1,1,1,2,2,3,1,1,benign
then use these set of commands
breastcancer <- read.csv("breastcancer.csv", sep = ",") breastcancer2 <- breastcancer[,1:9] outlierscores <- lofactor(breastcancer2, k=5)
however, giving me error:
error in scale.default(temp, x, false) : length of 'center' must equal number of columns of 'x'
could please me in identifying problem?
Comments
Post a Comment