Re: [R] subset with variable number of subset arguments

2008-10-31 Thread Brar Piening
Thank you very much! Brar Erik Iverson schrieb: I think subset(set, InfCode %in% x) does it, where 'x' is your vector of ids (e.g., c(1,3,9) in your example at the bottom) Brar Piening wrote: I've got a big data.frame from which I need to extract data based on a variable number of Id's

Re: [R] subset with variable number of subset arguments

2008-10-31 Thread Erik Iverson
I think subset(set, InfCode %in% x) does it, where 'x' is your vector of ids (e.g., c(1,3,9) in your example at the bottom) Brar Piening wrote: I've got a big data.frame from which I need to extract data based on a variable number of Id's (InfCode). Until now I've been using the following

[R] subset with variable number of subset arguments

2008-10-31 Thread Brar Piening
I've got a big data.frame from which I need to extract data based on a variable number of Id's (InfCode). Until now I've been using the following dull solution as I never needed to search for more than 5 codes. Now my needs have increased faster than my R skills did and I need to call my functi