[R] Lowest number in a numeric string

mogwai84 jontosh at gmail.com
Thu Jun 14 10:08:53 CEST 2012


Hi all,

I've got a very long numeric string. I want to find the lowest number that
isn't in that string.

E.G

String = 123456
Therefore 7 is the lowest number not in that string

E.G.2

String = 1234567891011
Therefore 13 is the lowest number not in that string.

Any thoughts? p.s. I'm an R noob.

--
View this message in context: http://r.789695.n4.nabble.com/Lowest-number-in-a-numeric-string-tp4633340.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list