Re: [R] Complicated For Loop (to me)

2009-11-09 Thread agm.
as > fairly representative of the overall data set. See ?dput for a way of > conveniently supply a sample data set. > > Otherwise off the top of my head, I would think that you could just put > all your subsets into a list and use lapply but I'm simply guessing > without

Re: [R] Complicated For Loop (to me)

2009-11-09 Thread agm.
I've looked through ?split and run all of the code, but I am not sure that I can use it in such a way to make it do what I need. Another suggestion was using "lists", but again, I am sure that the process can do what I need, but I am not sure it would work with so many observations. I might have

[R] Complicated For Loop (to me)

2009-11-09 Thread agm.
Hello, I'm trying to run a loop that will subset my data into specific sets by regions and by race/ethnicity. I'm trying to do this fairly compactly, and I cannot get this to work. A "simple" version of the code that I am trying to run is: names <- c("white", "black", "asian", "hispanic") fo