Greetings R-ians:
I know what doesnt work but I dont know why, nor how to remedy things.
I have a character string containing . which I want to replace with
gsub(., , file.label) replaces the every character with a blank.
However gsub(.xls, , file.label) replaces .xls with a blank as
on 09/23/2008 12:16 PM Charles Annis, P.E. wrote:
Greetings R-ians:
I know what doesn’t work but I don’t know why, nor how to remedy things.
I have a character string containing . which I want to replace with
gsub(., , file.label) replaces the every character with a blank.
However
Thanks!
Charles Annis, P.E.
[EMAIL PROTECTED]
phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com
-Original Message-
From: Phil Spector [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 1:30 PM
To: Charles Annis, P.E.
Subject: Re: [R] gsub
: Tuesday, September 23, 2008 2:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [R] gsub difficulty
Dear Charles,
Phil Spector answered your original question by using two different
approaches, but here I'm going again :)
x=your.string.is.here
gsub([.], ,x)
[1] your string is here
HTH
4 matches
Mail list logo