Nobody has posted the simplest answer:
x[!x %in% boxplot.stats(x)$out]
Also see this: http://www.r-statistics.com/2011/01/how-to-label-all-the-outliers-in-a-boxplot/
More Related Contents:
- Summarizing multiple columns with dplyr? [duplicate]
- Relative frequencies / proportions with dplyr
- How to add texture to fill colors in ggplot2
- Cleaning up factor levels (collapsing multiple levels/labels)
- Split a large dataframe into a list of data frames based on common value in column
- Save a plot in an object
- How to cbind or rbind different lengths vectors without repeating the elements of the shorter vectors?
- lapply vs for loop – Performance R
- Select equivalent rows [A-B & B-A] [duplicate]
- Extract regression coefficient values
- How to plot a function curve in R
- How to make execution pause, sleep, wait for X seconds in R?
- How to add legend to ggplot manually? – R [duplicate]
- Concatenate strings and expressions in a plot’s title
- When importing CSV into R how to generate column with name of the CSV?
- Creating a new variable from a lookup table
- Counting number of instances of a condition per row R [duplicate]
- Find value corresponding to maximum in other column [duplicate]
- Split delimited single value character vector
- R split numeric vector at position
- Creating a Plot Window of a Particular Size
- R: invalid multibyte string [duplicate]
- Reordering factor gives different results, depending on which packages are loaded
- Join two data frames in R based on closest timestamp
- How to assign from a function with multiple outputs? [duplicate]
- Manipulating files with non-English names in R
- remove text after final period in string
- Custom legend with imported images
- How to get a barplot with several variables side by side grouped by a factor
- What you can do with a data.frame that you can’t with a data.table?