[R] subsetting data frame using by() or tapply() or other

2005-10-13 Thread Brian S Cade
Ok so I see the problem that I'm having creating a new variable (LAG1DBC) in the example data transformation below is that tapply() is creating a list that is not dimensionally consistent with the data frame (data). So how do I go from the list output of tapply() to create a dimensionally

Re: [R] subsetting data frame using by() or tapply() or other

2005-10-13 Thread Marc Schwartz (via MN)
On Thu, 2005-10-13 at 14:28 -0600, Brian S Cade wrote: Ok so I see the problem that I'm having creating a new variable (LAG1DBC) in the example data transformation below is that tapply() is creating a list that is not dimensionally consistent with the data frame (data). So how do I go from

Re: [R] subsetting data frame using by() or tapply() or other

2005-10-13 Thread Brian S Cade
Marc Schwartz (via MN) [EMAIL PROTECTED] 10/13/2005 03:04 PM Please respond to [EMAIL PROTECTED] To Brian S Cade [EMAIL PROTECTED] cc r-help@stat.math.ethz.ch Subject Re: [R] subsetting data frame using by() or tapply() or other On Thu, 2005-10-13 at 14:28 -0600, Brian S Cade wrote: Ok