check.outliers: Indentifies and gives an option to remove outliers

Description Usage Arguments Author(s) Examples

View source: R/check.outliers.R

Description

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.

Usage

1
check.outliers(data.to.work, ask.before)

Arguments

data.to.work

is a data set with variables to be checked.

ask.before

control if the process will ask for confirmation or not.

Author(s)

Elias Carvalho

Examples

 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)

bnpa documentation built on Aug. 2, 2019, 1:05 a.m.

Related to check.outliers in bnpa...