Re: [R] Subsetting with a list of vectors

2010-05-23 Thread David Winsemius
On May 23, 2010, at 10:00 AM, Kang Min wrote: Hi, I have a dataset that looks like the one below. data plot plantno.species H 31 ABC D 2 DEF Y 54 GFE E 12 ERF Y 98 FVD H

Re: [R] Subsetting with a list of vectors

2010-05-23 Thread Kang Min
Thanks, but what I want is not 100 groups of 7 samples. Let's say in my samp2 I get [[1]] "D" "H" "K" "S" "E" "U" "O" [[2]] "H" "S" "R" "V" "A" "L" "B" etc... I want to select all rows from 'data' containing "D" "H" "K" "S" "E" "U" "O" first, then "H" "S" "R" "V" "A" "L" "B" and so on. On May

Re: [R] Subsetting with a list of vectors

2010-05-23 Thread jim holtman
try this: > x <- read.table(textConnection("plot plantno.species + H 31 ABC + D 2 DEF + Y 54 GFE + E 12 ERF + Y 98 FVD + H 4 JKU + J 7 J

[R] Subsetting with a list of vectors

2010-05-23 Thread Kang Min
Hi, I have a dataset that looks like the one below. data plot plantno.species H 31 ABC D 2 DEF Y 54 GFE E 12 ERF Y 98 FVD H 4 JKU J 7 J