partition {longitudinalData} | R Documentation |
partition
is the constructor of the class Partition
.
partition(clusters, nbClusters)
clusters |
[vector(factor)] : cluters to which each
individual belongs. Each clusters is represented by a letters (upper
and lower represent different clusters). |
nbClusters |
[numeric] : number of clusters. |
partition
construct a object of class
Partition
. It does not provide any default
values.
An object of class Partition
.
### Empty partition partition() ### Small partition partition(clusters=c("A","B","A","C","C"),nbClusters=3) ### Big random partition partition(clusters=LETTERS[floor(runif(1000,1,5))],nbClusters=5)