powered by
Function for removing outliers.
removeoutlier(x, coef = 2.5)
Location of outliers in the vector
A vector of a variable
A number of the times of standard deviation. Default is 2.5.
2.5
data("zn") # log-transformation hist(zn$Zn) zn$Zn <- log(zn$Zn) hist(zn$Zn) # remove outliers k <- removeoutlier(zn$Zn, coef = 2.5) k
Run the code above in your browser using DataLab