Hi Jeff,
Thanks for your reply. My df contains Protocols and their Parameters and I want
to use SOM to see if I can find some clusters in customor's using protocols.
Some of these Parameters are factors and some are numeric. I want to make a
subset of some protocols and give them to SOM as train
Hi Elahe,
if you look at your subdf, you will see that the column Country - which is
not numeric - is still present. You might have other non-number columns,
but this I cannot tell.
scale expects a numeric matrix. You give it a data.frame which is silently
cast to a matrix. A matrix can only have
You did not send sample of your data, using dput. Before doing that, I
suggest peeling apart your troublesome line of code yourself:
str( as.matrix( scale( subdf ) ) )
str( scale( subdf ) )
str( subdf )
And then think about what the scale function does. Does it make sense to ask it
to scale c
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))
4 matches
Mail list logo