[R] trim a string

Liaw, Andy andy_liaw at merck.com
Fri Jun 17 20:30:55 CEST 2005


http://finzi.psych.upenn.edu/R/Rhelp02a/archive/14493.html

Andy

> From: Omar Lakkis
> 
> How to trim the leading and trailing white space off of a string?
> 
>  If the variable is "  E              " I need to convert it to "E".
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
> 
>




More information about the R-help mailing list