search for: taylr

Displaying 2 results from an estimated 2 matches for "taylr".

Did you mean: taylor
2005 Oct 13
1
subsetting data frame using by() or tapply() or other
...6 algb-2 A 1992 0.09747155 7 algb-2 A 1993 0.84772253 8 algb-2 A 1997 0.43974081 9 algb-2 A 1998 0.83108544 10 algb-2 A 2000 0.22291192 11 algb-3 A 1992 0.44234175 12 algb-3 A 1993 0.54089534 5680 taylr-73 B 2001 0.43918082 5681 taylr-73 B 2002 0.34694427 5682 taylr-73 B 2003 3.35619190 5683 taylr-73 B 2004 0.71575815 5684 taylr-73 B 2005 0.42038506 5685 taylr-74 B 1992 3.88410354 5686 taylr-74 B 1993 3.32472557 5687 taylr-74...
2005 Oct 12
2
subsetting with by() or other function??
I think I must be missing something obvious, but I'm having trouble getting a data transformation to work on groupings of data within a data frame (csss3) as defined by 2 factors (population, locid). The data are sorted by year within locid within population and I want to lag another variable (dbc), i.e, shift them down by 1 row replacing the first row with NA, within groups defined by