An R package for clustering longitudinal data