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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to