[R] extract fixed width fields from a string

Sam Steingold sds at gnu.org
Fri Jan 20 21:14:21 CET 2012


On Fri, Jan 20, 2012 at 14:05, Sarah Goslee <sarah.goslee at gmail.com> wrote:
>> then I need to convert each 6/8 character string into an integer base 36
>> or 64 (depending on the field) - how?
>
> base 36?

10 decimal digits + 26 english characters = 36.
ThusThisLongWordWithLettersAndDigitsFrom0to9isAnIntegerBase36
(case insensitive).
So, how do I convert the above long word to a bignum?
actually, my numbers will fit into int64, no bignum support is necessary.

thanks.

-- 
Sam Steingold <http://sds.podval.org>



More information about the R-help mailing list