Skip to content
Prev 79607 / 398502 Next

Can anyone please tell me how to strip the white spaces from a character vector?

On Tue, 2005-10-25 at 08:51 -0400, roger bos wrote:
Roger, 

See the next to last set of examples in ?sub.
[1] "ABM "  "AFCE " "AG "   "ATG "
[1] "ABM"  "AFCE" "AG"   "ATG"


Also, if this data was generated using read.table() or one of it's
variants, note the use of the 'strip.white' argument in ?read.table.

HTH,

Marc Schwartz