I have a big dataset need to replace outliers with mean of the variable, is there a function to do that? lets take a example with the small dataset below:
data <- airquality
View(data)
library(outliers)
outlier(data)
following outlier can be found
Ozone Solar.R Wind Temp Month Day
168.0 7.0 20.7 56.0 9.0 31.0
How to replace them with column mean? Thank you!