Displaying 1 result from an estimated 1 matches for "spellman800genesimput".
Did you mean:
spellman800genesimputed
2008 Mar 18
3
Partition data into clusters
Greetings R-users,
I have been using the fpc package in R to cluster my data. Speficically 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...