Re: [R] Count of rows while looping through data

2011-05-27 Thread Jeanna
I may have prematurely excited... I ended up using the split method since my family indicators are alphanumeric so my issue is as follows. I'm applying this to different subsets of my main data set. The subsets do not contain all families. When I run the method on one of my subsets I get back a

Re: [R] Count of rows while looping through data

2011-05-26 Thread Jeanna
Thank you both. These solutions are far more elegant than anything I could have come up with, and I appreciate the opportunity to learn new commands within the context of my own data. I think I've got it working now. :) -- View this message in context: http://r.789695.n4.nabble.com/Count-of-r

[R] Count of rows while looping through data

2011-05-24 Thread Jeanna
I have a data table with one column that indicates families, and subsequent columns with other characteristics. I want to randomize one member of the family to a separate table. My approach is to count the number of members, set up a random number generator, and assign the family member based on