WHen using '==' or '%in%' it is a equality test -- it has to equal zero. If you want a tolerance in the test, use 'all.equal'
On Thu, Mar 25, 2010 at 5:29 PM, Dimitri Liakhovitski <ld7...@gmail.com>wrote: > Hello! > > I am wondering at what point does R consider a numeric value to be > equal to zero - for statements of the type x==0 and x %in% 0. > > Thank you very much! > > -- > Dimitri Liakhovitski > Ninah.com > dimitri.liakhovit...@ninah.com > > ______________________________________________ > R-help@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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? [[alternative HTML version deleted]] ______________________________________________ R-help@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.