For example, c("dog.is.an.animal", "cat.is.an.animal", "rat.is.an.animal"). How
can I identify the common prefix is ".is.an.animal" and delete it to give
c("dog", "cat", "rat") ?
Thanks
_________________________________________________________________
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.