getClusters | R Documentation |
This function extract a cluster affectation from an
ClusterLongData
object.
getClusters(xCld, nbCluster, clusterRank = 1, asInteger = FALSE)
xCld |
|
nbCluster |
|
clusterRank |
|
asInteger |
|
This function extract a clusters from an object
ClusterLongData
.
It is almost the same as
xCld[paste("c",nbCluster,sep="")][[clusterRank]]
except that
the individual with too many missing value (and thus excludes from the
analysis) will be noted by some NA values.
A vector of numeric or a LETTER, according to the value of asInteger
.
ClusterLongData
### Move to tempdir wd <- getwd() setwd(tempdir()); getwd() ### Creation of an object ClusterLongData myCld <- gald(20) ### Computation of some partition kml(myCld,2:4,3) ### Extraction form the list of partition with 3 clusters ### of the second clustering getClusters(myCld,3,2) ### Go back to current dir setwd(wd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.