Re: [R] surprising difference in log()

From: Mike Lawrence <Mike.Lawrence_at_dal.ca>
Date: Tue, 26 Jun 2007 13:20:34 -0300

Sorry, my mistake. I should really leave looking at the help list until AFTER my morning coffee :P

On 26-Jun-07, at 11:31 AM, Duncan Murdoch wrote:

> 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_at_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.

--
Mike Lawrence
Graduate Student, Department of Psychology, Dalhousie University

Website: http://memetic.ca

Public calendar: http://icalx.com/public/informavore/Public

"The road to wisdom? Well, it's plain and simple to express:
Err and err and err again, but less and less and less."
	- Piet Hein

______________________________________________
R-help_at_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.
Received on Tue 26 Jun 2007 - 16:57:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Jun 2007 - 17:32:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.