[R] removing last element from a character string
Luis Rideau Cruz
Luisr at frs.fo
Fri Aug 20 12:47:17 CEST 2004
R-help,
Any function to remove last element (or any specific elemnet in the sequence) from a character string?
t<-c("aaab","qqqc")
>function(t) ### remove last character (b and c respectively)
> aaa qqq
Thanks
`·._ .· `·. _ .· `·._ .· `·. _ .· `·._ .· `·. _ .· `·..
Luis Ridao Cruz
Fiskirannsóknarstovan
Nóatún 1
P.O. Box 3051
FR-110 Tórshavn
Faroe Islands
Phone: +298 353900
Phone(direct): +298 353912
Mobile: +298 580800
Fax: +298 353901
E-mail: luisr at frs.fo
Web: www.frs.fo
`·._ .· `·. _ .· `·._ .· `·. _ .· `·._ .· `·. _ .· `·..
More information about the R-help
mailing list