Hi,
The documentation for floor, ceiling and trunc is slightly ambiguous.
"floor takes ... and returns a numeric vector containing the largest
integers ..."
My initial thought was that floor() would return a vector of integers.
Instead, it returns a vector of doubles, i.e c(1L, 2L) vs c(1, 2)
On 01/01/2022 2:24 p.m., Colin Gillespie wrote:
Hi,
The documentation for floor, ceiling and trunc is slightly ambiguous.
"floor takes ... and returns a numeric vector containing the largest
integers ..."
My initial thought was that floor() would return a vector of integers.
That would be de
Excellent reason, Duncan. R does not have an unlimited integer type as in
Python so truncating or rounding activities can well produce a result that
would be out of bounds.
If someone really wants an array of integers, other than efficiency reasons,
they could process the output from something lik