View source: R/all_custom_functions.R
rmOutliers | R Documentation |
The function removes outliers from all numeric variables (also integers) in a data frame while leaving all other variables unchanged. Outliers are (columnwise) defined through the criterion used in the boxplot function.
rmOutliers(x, chngName = TRUE)
x |
A data frame. |
chngName |
A logical value indicating whether a tag should be added to the column names of all numeric variables. |
Returns the data frame with no outliers.
d <- iris[1:10,]
d_no <- rmOutliers(d)
d_no
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.