powered by
Update the cluster names
clusterNames(object) <- value
The lcModel object to update.
lcModel
The character with the new names.
character
The updated lcModel object.
# NOT RUN { 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