Get the cluster names

clusterNames(object, factor = FALSE)

Arguments

object

The lcModel object.

factor

Whether to return the cluster names as a factor.

Value

A character of the cluster names.

Examples

data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, latrendData)
clusterNames(model) # A, B
#> [1] "A" "B"