Re: [R] Lowest number in a numeric string

2012-06-14 Thread Petr Savicky
On Thu, Jun 14, 2012 at 01:08:53AM -0700, mogwai84 wrote: > 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 > Th

Re: [R] Lowest number in a numeric string

2012-06-14 Thread Petr Savicky
On Thu, Jun 14, 2012 at 01:08:53AM -0700, mogwai84 wrote: > 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 > Th

Re: [R] Lowest number in a numeric string

2012-06-14 Thread Jim Lemon
On 06/14/2012 06:08 PM, mogwai84 wrote: 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

[R] Lowest number in a numeric string

2012-06-14 Thread mogwai84
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.