affect_rand: Affect randomly the individuals to the clusters

Description

Affect randomly the individuals to the clusters.

Usage

1
  affect_rand(nObs, nClust)

Arguments

nObs

Number of observations.

nClust

Number of clusters.

Details

Affect randomly the individuals to the clusters providing no empty clusters.

Value

A [vector] of length 'nObs' containing the affectation to the clusters.

Note

Meant to be used internally.


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.