[R] <= returns wrong result? Why
Peter Ehlers
ehlers at ucalgary.ca
Wed Jan 13 09:09:34 CET 2010
Trafim Vanishek wrote:
> Dear all,
>
> Does anybody know the probable reason why <= gives false when it should give
> true?
> These two variables are of the same type, and everything works in the cycle
> but then it stops when they are equal.
>
> this is the output result
>> Rk[47] <= RB[21]
> [1] FALSE
>
>> Rk[47]
> [1] 0.002842007
>
>> RB[21]
> [1] 0.002842007
>
> Thanks a lot.
What makes you think that Rk[47] and RB[21] are equal? You're only
showing 9-decimal print versions.
-Peter Ehlers
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.
>
>
--
Peter Ehlers
University of Calgary
403.202.3921
More information about the R-help
mailing list