Re: [R] truncate integers

2010-11-13 Thread Tyler Dean Rudolph
Thank you David; this seems to perform the required task with relative ease, which is all I could ask for at the moment! Tyler On Sat, Nov 13, 2010 at 1:32 PM, David Winsemius wrote: > > On Nov 13, 2010, at 12:34 PM, T.D. Rudolph wrote: > > >> Is there any really easy way to truncate integers w

Re: [R] truncate integers

2010-11-13 Thread David Winsemius
On Nov 13, 2010, at 12:34 PM, T.D. Rudolph wrote: Is there any really easy way to truncate integers with several consecutive digits without rounding and without converting from numeric to character (using strsplit, etc.)?? Something along these lines: e.g. = 456 truncfun(e.g., location

[R] truncate integers

2010-11-13 Thread T.D. Rudolph
Is there any really easy way to truncate integers with several consecutive digits without rounding and without converting from numeric to character (using strsplit, etc.)?? Something along these lines: e.g. = 456 truncfun(e.g., location=1) = 4 truncfun(e.g., location=1:2) = 45 truncfun(e.g.,