Hi
Is there a way to remove blank characters from the end of strings in a
vector? Something like the =TRIM functions of the OpenOffice
spreadsheet. E.g.,
a <- c("hola    ", "Yes ", "hello           ")    # I'd like to get:
c("hola", "Yes", "hello")

Thanks

Juli


--
http://www.ceam.es/pausas

______________________________________________
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