Re: [R] trim a string

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat 18 Jun 2005 - 04:47:37 EST

Better code for this purpose is in example(grep).

`white space' and `a blank' are not necessarily the same thing.

On Fri, 17 Jun 2005, Liaw, Andy wrote:

> 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".

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@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
Received on Sat Jun 18 04:58:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:49 EST