I want to extract the outliers from my data frame. Like 10 out of 1000 data points which are possible outliers or doesn't fall in 95% confidence interval. There are some ways to find the value with largest difference between it and sample mean.
> a <- c(1,3,2,4,5,2,3,90,78,56,78,23,345)
> require("outliers")
> outlier(a)
[1] 345
I don't want to remove the outliers from my dataframe or from my boxplot. I want to print or subset them.
Any ideas?