search for: wholeset2

Displaying 1 result from an estimated 1 matches for "wholeset2".

Did you mean: wholeset
2008 Mar 18
3
Partition data into clusters
...I am using kmeansruns clustering. I would like to know how I use R to partition data into clusters. What I am doing is as follows. # Use csv file as input ##################### wholeset = read.csv("Spellman800genesImputed.csv") # exclude first col (gene names) ########################## wholeset2 = wholeset[,-1] #Use fpc ########################### library(fpc) cl.kmr10 <- kmeansruns(wholeset2,k=10,runs=10) #append cluster label to original dataset ################### cl2 <- data.frame(wholeset, cl.kmr10$cluster) After this step, I write cl2 into a csv file and manually partition...