I'm beginning to learn R and data science in general.
I have a data frame and most of my variables and the class I want to predict are discrete.
What I need to do is find outliers in this data so I can deal with them by imputation or whatever.
Some methods I researched were to use IQR (Inter Quartile Range), Cook's distance or use the 'outliers' package, but it seems most of them can only be applied to continuous data, so R gave me errors saying that it could not be applied to factors, in this case, discrete data I suppose.
One of the errors I got when using the 'outliers' package.
Error in Summary.factor(c(6L, 6L, 8L, 6L, 7L, 7L, 6L, 9L, 12L, 12L, 12L, : 'max' not meaningful for factors
Am I doing something wrong here? Can someone help? Any help is appreciated, thanks.