removeoutlier | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.