Description Usage Arguments Author(s) Examples
View source: R/check.outliers.R
This function receives a data set, scan all variables e for each one, verifies if there are outliers and ask if we wish to remove them. We can pass a parameter where we set if the function remove it automatically or will ask before.
1 | check.outliers(data.to.work, ask.before)
|
data.to.work |
is a data set with variables to be checked. |
ask.before |
control if the process will ask for confirmation or not. |
Elias Carvalho
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Clean environment
closeAllConnections()
rm(list=ls())
# Set enviroment
# setwd("to your working directory")
# Load packages
library(bnpa)
# Load the data set
data(dataQuantC) # Pre-Loaded
# Set a variable to ask before remove outlier or not
ask.before = "Y" # or ask.before = "N"
# Call the procedure to check if there are outliers
dataQuantC <- check.outliers(dataQuantC, ask.before)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.