Hi all,
I want to use Self Organizing Map in R for my data. I want my training set to 
be the following subset of my data:
 

    subdf=subset(df,Country%in%c("US","FR"))
next I should change this subset to a matrix but I get the following error:
 
    data_train_matrix=as.matrix(scale(subdf))
    error in colMeans(x,na.rm=TRUE):'x' must be numeric
 
Can anyone help me to solve that?
Thanks for any help
Elahe

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to