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

[R] How to "vectorize" subsetting

2013-08-14 Thread Derickson, Ryan, VHACIN
I'm not trying to repost or spam everyone- I submitted this once before I subscribed so I just wanted to resend in case it didn't get disseminated. Hello all, I've tried to solve this for weeks and posted to other forums with little success- I'd appreciate any help from anyone. I

[R] How to "vectorize" subsetting

2013-08-14 Thread Derickson, Ryan, VHACIN
Hello all, I've tried to solve this for weeks and posted to other forums with little success- I'd appreciate any help from anyone. I have survey data grouped by facility and area (area is a collection of facilities). Questions are q1-q10. For each facility, I need to subset each item into the