Hello. I have the next script.
tdfile <- read.table("tdfile.txt", header = T) d <- dist(tdfile) fit <- cmdscale(d,eig=TRUE, k=3) # k is the number of dim fit # view results x1 <- fit$points[,1] x2 <- fit$points[,2] x3 <- fit$points[,3]
After the script is done I had the warning:
"In dist (tdfile): NA created as a result of the conversion"
What's wrong with code? What I must do?