sed?

1,$s/ //g
  ----- Original Message ----- 
  From: Joel
  To: r-help@r-project.org
  Sent: Thursday, May 05, 2011 6:50 PM
  Subject: [R] Remove all whitespaces


  Hi

  I got a string that looks something like this

  1 2 3 4 5 6 7 8 9 ...

  and I want it to be

  123456789...

  So I want to remove all spaces (or whitespaces) from my string.

  Anyone know a good way of doing this?

  //Joel

  --
  View this message in context: 
http://r.789695.n4.nabble.com/Remove-all-whitespaces-tp3497867p3497867.html
  Sent from the R help mailing list archive at Nabble.com.

  ______________________________________________
  R-help@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
  and provide commented, minimal, self-contained, reproducible code. 

	[[alternative HTML version deleted]]

