[R] Weird read.xls behavior

Gabor Grothendieck ggrothendieck at gmail.com
Tue May 10 17:17:17 CEST 2011


On Tue, May 10, 2011 at 10:59 AM, David Winsemius
<dwinsemius at comcast.net> wrote:
>
> On May 10, 2011, at 10:54 AM, Jun Shen wrote:
>
>> Hi, Kenneth,
>>
>> I would like a bit more advice on how to use gsub to remove the spaces at
>> the beginning or the end for a data frame and still keep the data frame in
>> the same format. The way I see is something like
>>
>> gsub(' *$', '' , unlist(dataframe)). But the result is not a data frame
>> anymore. Thanks.
>>
>
> 1) Please do not attach unrelated questions to existing threads.
> 2) Please do include reproducible code that creates an example to work with.
> 3) Please do read the help page for gsub with careful attention to the

To be fair this was related and he did send me something reproducible
privately although you would not know that.

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-help mailing list