Re: [R] Lists of tables and conditional statements

2011-03-31 Thread Herbert, Alan G
-help@r-project.org Help Subject: Re: [R] Lists of tables and conditional statements On Mar 30, 2011, at 7:27 PM, Henrique Dallazuanna wrote: > Try this: > > lapply(l, function(x)x[x[,'Sum'] == 3,]) If this is the right answer, you should send a "solved" message. The

Re: [R] Lists of tables and conditional statements

2011-03-30 Thread David Winsemius
On Mar 30, 2011, at 7:27 PM, Henrique Dallazuanna wrote: Try this: lapply(l, function(x)x[x[,'Sum'] == 3,]) If this is the right answer, you should send a "solved" message. The dput extract was incomplete. -- David. On Wed, Mar 30, 2011 at 7:38 PM, Herbert, Alan G wrote: Hi R-users

Re: [R] Lists of tables and conditional statements

2011-03-30 Thread Henrique Dallazuanna
Try this: lapply(l, function(x)x[x[,'Sum'] == 3,]) On Wed, Mar 30, 2011 at 7:38 PM, Herbert, Alan G wrote: > Hi R-users, > > I have a list containing numeric tables of differing row length. I want to > make a new list that contains only rows from tables with a "Sum" greater than > 3, plus the

Re: [R] Lists of tables and conditional statements

2011-03-30 Thread David Winsemius
On Mar 30, 2011, at 5:38 PM, Herbert, Alan G wrote: Hi R-users, I have a list containing numeric tables of differing row length. I want to make a new list that contains only rows from tables with a "Sum" greater than 3, plus the names of each table. I was wondering whether there is an el

[R] Lists of tables and conditional statements

2011-03-30 Thread Herbert, Alan G
Hi R-users, I have a list containing numeric tables of differing row length. I want to make a new list that contains only rows from tables with a "Sum" greater than 3, plus the names of each table. I was wondering whether there is an elegant way to do this using apply of related functions as th