Last chance! 50% off unlimited learning
Sale ends in
Obtain the size of each cluster, where the size is determined by the number of assigned trajectories to each cluster.
clusterSizes(object, ...)
The lcModel
object.
Arguments passed on to trajectoryAssignments
A named integer vector
of length nClusters(object)
with the number of assigned trajectories per cluster.
The cluster sizes are computed from the trajectory cluster membership as decided by the trajectoryAssignments()
function.
# NOT RUN {
data(latrendData)
model <- latrend(lcMethodKML("Y", id = "Id", time = "Time"), latrendData)
clusterSizes(model)
# }
Run the code above in your browser using DataLab