s-news
[Top] [All Lists]

Removing extra white space

To: s-news@lists.biostat.wustl.edu
Subject: Removing extra white space
From: maeve.harrison9@mail.dcu.ie
Date: Wed, 20 Jun 2007 14:14:44 +0100
Hi

I am using S-Plus 6.2 on Windows NT and I am trying to remove extra white
spaces from a string.
I have used the strip.blanks() method to remove leading and trailing white
space, but I also want a function that will remove extra interior white spaces,
where "name    with        spaces" would be changed to "name with spaces",
with only one space between the words.


Thanks in anticipation for any help,
Maeve



<Prev in Thread] Current Thread [Next in Thread>