remove_outliers: Remove Outliers

View source: R/remove_outliers.R

remove_outliersR Documentation

Remove Outliers

Description

This function allows you to remove the outliers found in a list you are working with and save it to a new list.

Usage

remove_outliers()

Examples

> x = c(-5,1,3,4,5,5,5,7,8,8,9,10,10,15,24,27)
> new_x = remove_outliers()
Remember! remove_outliers() needs to know what you want the new list name to be!
Make sure you typed *your new list name here* = remove_outliers(). If not, press Esc to cancel.
  
What is the name of the list with your data? x

Look at the boxplot that was just created.
What is the lower cutoff for small outliers? You may answer 'none'. 0
What is the upper cutoff for large outliers? You may answer 'none'. 20


You can do this yourself by typing:
*new list name* = x[x > 0 & x < 20]
> new_x
[1]  1  3  4  5  5  5  7  8  8  9 10 10 15

jrpriceUPS/Math160UPS documentation built on April 28, 2024, 12:41 p.m.