[R] Lists of tables and conditional statements
David Winsemius
dwinsemius at comcast.net
Thu Mar 31 01:06:32 CEST 2011
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 elegant way to do this using apply of related
> functions as this list has many thousands of such tables.
Can you post the output from dput on that list? The presence of colons
in the names make me wonder whether it might have come from a bioc
function and such results tend to have a lot of S4 objects in them.
--
David.
>
> Here is an example of the list
>
>
> $AACS
>
> POOL
>
> INFO pool1 pool2 pool6 pool7 pool8 pool.all Sum
>
> 12:125561133:novel 0 0 0 0 1 0 1
>
> 12:125570904:novel 0 0 0 0 1 0 1
>
> 12:125571014:novel 0 1 0 0 0 0 1
>
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list