Skip to content
Prev 180634 / 398506 Next

converting numeric to integer

Try:

as.integer(x + 0.5)

assuming the calculation error is less than 0.5 .
On Sat, May 16, 2009 at 2:49 PM, Thomas Mang <thomas.mang at fiwi.at> wrote: