[R] Can anyone please tell me how to strip the white spaces from a character vector?
Romain Francois
francoisromain at free.fr
Tue Oct 25 15:09:59 CEST 2005
Le 25.10.2005 14:51, roger bos a écrit :
>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
>
>
gsub(' ','',a$tic)
--
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
+---------------------------------------------------------------+
| Romain FRANCOIS - http://francoisromain.free.fr |
| Doctorant INRIA Futurs / EDF |
+---------------------------------------------------------------+
More information about the R-help
mailing list