[Rd] Documentation for floor, ceiling & trunc

Colin Gillespie c@g|||e@p|e @end|ng |rom gm@||@com
Sat Jan 1 20:24:01 CET 2022


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)

 * Could the docs be changed
 * Would it be worth returning integers instead?

Thanks

Colin



More information about the R-devel mailing list