Displaying 1 result from an estimated 1 matches for "petapurpb".
2009 Aug 31
4
Simple column selection question- which and character lists
...s:
>names.species.bio.18=c("Achimillb","Agrosmitb","Amorcaneb","Andrgerab","Ascltubeb","Elymcanab","Koelcrisb","Lespcapib","Liataspeb","Lupipereb","Monafistb","Panivirgb","Petapurpb","Poaprateb","Querellib","Quermacrb","Schiscopb","Sorgnutab")
I want to select the column numbers which correspond to these names in my
data frame:
>which(colnames(data)==names.species.bio.18)
Result:
+[1] 75 76
+Warning message:
+In cols...