Error message in R 'x' must be numeric principal component analysis

Sunday, May 11, 2014

I have imported the csv file into R, but R didn't recognize the first column is row.names.


I have tried to copy mtcars data to excel and then convert to csv file, using


df<- read.csv("E:/mtcars_test.csv",header=TRUE, quote="\"")


import successfully, test whether it is data.frame = true


when run pc <-prcomp(df, centre = TRUE, Scale = TRUE)


then error message show -X must be numeric. data set didn't have any null value.


Thanks Addamo







http://ift.tt/1qrHEre