Re: [R] Can anyone please tell me how to strip the white spaces from acharacter vector?

2005-10-25 Thread Dimitris Rizopoulos
] 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

Re: [R] Can anyone please tell me how to strip the white spaces from acharacter vector?

2005-10-25 Thread Stefano Calza
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

Re: [R] Can anyone please tell me how to strip the white spaces from acharacter

2005-10-25 Thread Francisco J. Zagmutt
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