[R] cutting out numbers from vectors
calundergrad
haibinglin at berkeley.edu
Thu Jul 31 22:40:04 CEST 2008
i have a vector with values similar to the below text
[1] 001-010-001-0
I want to get rid of all leading zeroes. for example i want to change the
values of the vector so that [1] 001-010-001-0 becomes [1] 1-010-001-0.
Another example
[1]082-232-232-1 becomes [1] 82-232-232-1
how do i do this?
--
View this message in context: http://www.nabble.com/cutting-out-numbers-from-vectors-tp18763058p18763058.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list