affect_rand: Affect randomly the individuals to the clusters

Description Usage Arguments Details Value Note

View source: R/functions4glmClust.R

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.


kmlcov documentation built on May 20, 2017, 12:53 a.m.

Search within the kmlcov package
Search all R packages, documentation and source code