Re: [Rd] Documentation for floor, ceiling & trunc

2022-01-01 Thread Avi Gross via R-devel
-devel@r-project.org Subject: Re: [Rd] Documentation for floor, ceiling & trunc 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

Re: [Rd] Documentation for floor, ceiling & trunc

2022-01-01 Thread Duncan Murdoch
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

[Rd] Documentation for floor, ceiling & trunc

2022-01-01 Thread Colin Gillespie
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)