Re: [R] How to "vectorize" subsetting

2013-08-14 Thread Steve Lianoglou
Howdy, On Wed, Aug 14, 2013 at 9:40 AM, Bert Gunter wrote: > mod Jeff Newmiller's comments... > > 1. Have you read"An Introduction to R? (or other basic tutorial -- > there are many on the web). If no, stop posting and do so. This will > help you to understand R's basic data manipulation capabili

Re: [R] How to "vectorize" subsetting

2013-08-14 Thread Bert Gunter
mod Jeff Newmiller's comments... 1. Have you read"An Introduction to R? (or other basic tutorial -- there are many on the web). If no, stop posting and do so. This will help you to understand R's basic data manipulation capabilities and structures (list, "apply" type functions,...). 2. mod 1), pe

Re: [R] How to "vectorize" subsetting

2013-08-14 Thread Jeff Newmiller
If your efforts on those unspecified other forums were like this one, perhaps repeating what doesn't work is your problem. You don't appear to have read and understood the footer of any email on this list. For one thing, you need to post in plain text (to avoid the corruption that HTML email can

Re: [R] How to "vectorize" subsetting

2013-08-14 Thread Rainer Schuermann
I'm sure there are better, more elegant ways avoiding the nested loop I'm suggesting - but if it was my problem, here is what I would do (assuming that my understanding of your question is correct): ### separate function for 'doing something' with the data subset do.something <- function( qA, qB