Learn R Programming

mdir (version 0.9.0)

checkLabels: Check labels

Description

Internal function that checks the initial labels are the correct type.

Usage

checkLabels(labels, K)

Value

No return value, called for side effects.

Arguments

labels

Vector of initial labels for a view in ``callMDI``.

K

Number of components modelled.

Examples

Run this code
N <- 20
K <- 3
labels <- sample(seq(1, K), replace = TRUE, size = N)
checkLabels(labels, K)

Run the code above in your browser using DataLab