Skip to content
Prev 67483 / 398506 Next

removing characters from a string

Hi

Try


  gsub("[^0-9]","","1111af-456utaDFasswe34534%^&%*$h567890ersdfg")
[1] "111145634534567890"



HTH

rksh
On Apr 12, 2005, at 01:54 pm, Vivek Rao wrote:

            
--
Robin Hankin
Uncertainty Analyst
Southampton Oceanography Centre
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743