search for: first_ob

Displaying 1 result from an estimated 1 matches for "first_ob".

Did you mean: first_mb
2010 Feb 14
0
Keeping the attributes of an observation
Hey R list, Can someone help me with following question? I can create a listing of the unique observations in a dataframe by using: df <- df [order(df $start),] df $first_ob[!duplicated(df $ID)] <- "1" df $first_ob[duplicated(df $ID)] <- "0" Now I want to hold specific attributes of the first observation for other (the second or third …) observation of a specific element (named ID). So for example if I have an element with ID X that is ‘ok’...