Look at ?all.equal and ?identical as well as searching the archives for those terms. You'll find many an illuminating thread on precision, floating point arithmetic and other wonders.
minX <- 4.2 min0 <- 4.1 sigmaG <- 0.1 Diff <- minX-min0 all.equal(Diff, sigmaG) identical(Diff, sigmaG) HTH, Andy ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
