Transform id and time from wide format into long format, i.e., time and id are repeated accordingly so that two vectors of the same length are returned.
wide2long(time, id)
a list with time and id
time
id
the observation points
the id for the curve