] Can anyone please tell me how to strip the white spaces
from acharacter vector?
for example:
a$tic[1:10]
[1] AIR ABCB ABXA ACMR ADCT ADEX
[7] ABM AFCE AG ATG
Can anyone please tell me how to strip the white spaces from a$tic?
Thanks,
Roger
[[alternative HTML version deleted
What about
xx - c(AIR , ABCB , ABXA , ACMR , ADCT , ADEX , AAA)
xx=gsub([[:blank:]],,xx)
Stefano
On Tue, Oct 25, 2005 at 03:14:39PM +0200, Dimitris Rizopoulos wrote:
Dimitrisone way is to use strsplit(), i.e.,
Dimitris
Dimitrisxx - c(AIR , ABCB , ABXA , ACMR , ADCT , ADEX )
Dimitris
From: roger bos [EMAIL PROTECTED]
To: ([EMAIL PROTECTED]) R-help@stat.math.ethz.ch
Subject: [R] Can anyone please tell me how to strip the white spaces from
acharacter vector?
Date: Tue, 25 Oct 2005 08:51:48 -0400
for example:
a$tic[1:10]
[1] AIR ABCB ABXA ACMR ADCT ADEX
[7] ABM AFCE AG