powered by
id2rownum takes an id and converts it t the right row number in the dataset; ids should be unique in the dataset that is, don't pass the function panel data with multiple same ids
id2rownum(id, data, idname)
data frame
unique id
vector of ids