Learn R Programming

latrend (version 1.6.1)

clusterNames<-: Update the cluster names

Description

Update the cluster names

Usage

clusterNames(object) <- value

Value

The updated lcModel object.

Arguments

object

The lcModel object to update.

value

The character with the new names.

Examples

Run this code
data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, latrendData, nClusters = 2)
clusterNames(model) <- c("Group 1", "Group 2")

Run the code above in your browser using DataLab