Displaying 1 result from an estimated 1 matches for "data_sequence_numb".
Did you mean:
data_sequence_number
2004 Nov 21
3
RE : Create sequence for dataset
Dear members,
I want to create a sequence of numbers for the multiple records of
individual animal in my dataset. The SAS code below will do the trick, but
I want to learn to do it in R. Can anyone help ?
data ht&ssn;
set ht&ssn;
by anml_key;
if first.anml_key then do;
seq_ht_rslt=0;
end;
seq_ht_rslt+1;
Thanks in advance.
Stella