Skip to content

how to handle a longitudinal data

2 messages · gallon li, Chuck Cleland

#
gallon li wrote:
If the data are in a data frame called df, do the following:

table(df$id)

  Also, the following is useful for seeing how many people have a
particular number of observations:

table(table(df$id))