Re: [R] Subsetting Data Frame based On Specified K Value

2009-09-03 Thread Bill.Venables
3 September 2009 4:44 PM To: r-h...@stat.math.ethz.ch Subject: [R] Subsetting Data Frame based On Specified K Value I have a data that looks like this: http://dpaste.com/88988/plain/ How can I extract/subset the data frame based on selected uniq ID. Let's say I want the first K uniq ID. I want to

[R] Subsetting Data Frame based On Specified K Value

2009-09-02 Thread Gundala Viswanath
I have a data that looks like this: http://dpaste.com/88988/plain/ How can I extract/subset the data frame based on selected uniq ID. Let's say I want the first K uniq ID. I want to be able to specify the parameter "K" here, (i.e. given K=3, we hope to extract dat$V2 = 0,1,2). I'm stuck with thi