removeoutlier {geosimilarity} | R Documentation |
Function for removing outliers.
removeoutlier(x, coef = 2.5)
x |
A vector of a variable |
coef |
A number of the times of standard deviation. Default is |
Location of outliers in the vector
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