Learn R Programming

latrend (version 1.3.0)

clusterNames: Get the cluster names

Description

Get the cluster names

Usage

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

Run this code
# NOT RUN {
data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, latrendData)
clusterNames(model) # A, B
# }

Run the code above in your browser using DataLab