[R] deleting rows containing a letter
chris20
bop07crb at sheffield.ac.uk
Wed May 11 13:55:01 CEST 2011
Hi
I have dataframe with different plot numbers in and different subplots as
letters at the end of the plot number i.e. 1a, 1b 2-1a etc.
I want to delete all rows that end in a specific letter eg...
treat<-c("1a","1b","1c","2a","2b","2c","2-1a","2-1b","2-1c")
a1<-1:9
b1<-9:1
d1<-data.frame(treat,a1,b1)
How do I remove all rows where treat ends in "c" ? I have tried the usual
ways of deleting rows but nothing works.
Thanks
Chris
--
View this message in context: http://r.789695.n4.nabble.com/deleting-rows-containing-a-letter-tp3514473p3514473.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list