[R] How to remove multiple outliers
aajit75
aajit75 at yahoo.co.in
Fri Oct 21 12:40:58 CEST 2011
Hi Michael,
Thanks for the help.
Yes, I have gone through the document for ?outlier. As it removes one
outlier at a time, being new to R, I was woondering is there any function
available for removing multiple outliers whithout calling say rm.outlier for
n number of time because n is not finite here.
On the second point, I am using below mentioned piece of code, because I am
getting error when rm.outlier with fill = FALSE option is applied on the
same dataset.
outlier_tf1 = outlier(x1,logical=TRUE)
find_outlier1 = which(outlier_tf1==TRUE, arr.ind=TRUE)
beh_input_ro1 = x1[-find_outlier1]
> library(outliers)
> beh_input_ro <- rm.outlier(beh_input_dr, fill = FALSE, median = FALSE,
> opposite = FALSE)
Error in data.frame(X1 = c(28.7812, 24.8923, 31.3987, 25.774, 27.1798, :
arguments imply differing number of rows: 2398, 2390, 2399
Regards,
-Ajit
--
View this message in context: http://r.789695.n4.nabble.com/How-to-remove-multiple-outliers-tp3921689p3924904.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list