Re: [R] Precision level

2010-03-26 Thread Dimitri Liakhovitski
Thanks a lot - it's been helpful. Look like it has to be pretty darn close to zero to be considered = 0. D. On Fri, Mar 26, 2010 at 3:22 AM, Prof Brian Ripley wrote: > On Fri, 26 Mar 2010, Rolf Turner wrote: > >> >> On 26/03/2010, at 12:38 PM, jim holtman wrote: >> >>> WHen using '==' or '%in%' i

Re: [R] Precision level

2010-03-26 Thread Prof Brian Ripley
On Fri, 26 Mar 2010, Rolf Turner wrote: On 26/03/2010, at 12:38 PM, jim holtman wrote: 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 wrote: Hello! I am wo

Re: [R] Precision level

2010-03-25 Thread Rolf Turner
On 26/03/2010, at 12:38 PM, jim holtman wrote: > 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 wrote: > >> Hello! >> >> I am wondering at what point does

Re: [R] Precision level

2010-03-25 Thread jim holtman
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 wrote: > Hello! > > I am wondering at what point does R consider a numeric value to be > equal to zero - for stateme

[R] Precision level

2010-03-25 Thread Dimitri Liakhovitski
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 mail