removeoutlier {geosimilarity} | R Documentation |
Removing outliers.
Description
Function for removing outliers.
Usage
removeoutlier(x, coef = 2.5)
Arguments
x |
A vector of a variable |
coef |
A number of the times of standard deviation. Default is |
Value
Location of outliers in the vector
Examples
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
[Package geosimilarity version 3.7 Index]