Re: [R] how to remove outliers

2014-07-15 Thread S Ellison
; Sent: 15 July 2014 11:38 > To: Hasan Diwan > Cc: R Project Help > Subject: Re: [R] how to remove outliers > > No! Do not do this. > > First, the syntax is wrong. Second, this will fail in general due to floating > point > arithmetic. Use inequality with sufficient f

Re: [R] how to remove outliers

2014-07-15 Thread Bert Gunter
No! Do not do this. First, the syntax is wrong. Second, this will fail in general due to floating point arithmetic. Use inequality with sufficient fuzz instead. e.g. time <- time[time$TimeDiff < 14478,] Moral: Caveat Emptor. Free advice may be worth exactly that. Cheers, Bert Bert Gunter Genen

Re: [R] how to remove outliers

2014-07-14 Thread Hasan Diwan
Marta, To remove a row from your data frame, use: value <- 14478.4 time <- time[-time[$TimeDiff] == value,] I hope that helps... If not, do push back. -- H On 14 July 2014 09:17, Marta valdes lopez wrote: > Hi! > > I did this test and I got this outlier that i would like to remove the > whole

[R] how to remove outliers

2014-07-14 Thread Marta valdes lopez
Hi! I did this test and I got this outlier that i would like to remove the whole row in my database; anyone knows how i can remove it? chisq.out.test(time$TimeDiff) chi-squared test for outlier data: time$TimeDiff X-squared = 73260.07, p-value < 2.2e-16 alternative hypothesis: highest v