Displaying 1 result from an estimated 1 matches for "ship_nb".
2005 Jan 13
2
subsetting like in SAS
...mplement).
I have a large dataset with many variables needed to identify the
origin of a sample, many to describe sample characteristics, others to
describe site characteristics.
I want only a (shorter) list of sites and their characteristics.
If "origin", "ship_cat", "ship_nb", "trip" and "set" are needed to
identify a site, in SAS you'd sort on those variables, then read the
data with:
data sites;
set alldata;
by origin ship_cat ship_nb trip set;
if first.set;
keep list-of-variables-detailing-sites;
run;
In R I did this with the Lag...