On 6/26/2007 10:20 AM, Mike Lawrence wrote:
> According to the description of floor(), the latter result is the  
> correct one:
> 
> 'floor takes a single numeric argument x and returns a numeric vector  
> containing the largest integers *not greater than* the corresponding  
> elements of x.' (emphasis added)
> 
> floor(3) == 2
>  >True

3 is not greater than 3, but it is greater than 2, so the result you 
quote above is wrong.  You should see

> floor(3)
  [1] 3

 > floor(3) == 2
[1] FALSE

Do you really see the result you posted?

Duncan Murdoch

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to