Create id_indicators.r

Adds indicators for the first id and last id of a group or individual in longitudinal data by vectorized operations - (much faster than for loop).