[R] strange boolean results

David Carlson dcarlson at tamu.edu
Thu Jun 13 18:08:34 CEST 2013


Frequently Asked Questions 7.31 Why doesn't R think these numbers
are equal?
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-doesn_0027t-R-think
-these-numbers-are-equal_003f

For more details read the First Circle of the R Inferno:
http://www.burns-stat.com/pages/Tutor/R_inferno.pdf

-------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77840-4352


-----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of Filippo Monari
Sent: Thursday, June 13, 2013 10:48 AM
To: r-help at r-project.org
Subject: [R] strange boolean results

Hi,
anyone can explain to me the following?

 > rho
  [1] 0.9452398 0.8792735 0.9641829 0.9876954 0.9993560 0.9826084
1.0000000
  [8] 1.0000000 0.7982916 1.0000000 0.3361956

 > any(rho >= 1)
[1] FALSE

thanks, regards
Filippo

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



More information about the R-help mailing list