Learn R Programming

latrend (version 1.1.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)
model <- latrend(lcMethodKML("Y", id = "Id", time = "Time"), latrendData)
clusterNames(model) # A, B
# }

Run the code above in your browser using DataLab