Create a subset of the data with the given trajectories
.trajSubset(data, ids, id)
data
The longitudinal dataset, a data.frame
data.frame
ids
The trajectory identifiers, vector
vector
id
The name of the id column