Typically calls censorThis on the values and subsequently discards NA values.

discardOob(x, range = NULL, aes = "z")

# S4 method for ANY,missing
discardOob(x, range = NULL, aes = "z")

# S4 method for numeric,numeric
discardOob(x, range = c(0, 1), aes = "z")

# S4 method for GenomicRanges,GenomicRanges
discardOob(x, range = GRanges(NA_character_, IRanges(0, 1)), aes = "z")

# S4 method for WoodenHorse,ANY
discardOob(x, range = c(0, 1), aes = "z")

Arguments

x

A vector of values to manipulate.

range

A range representing object.

aes

An aesthetic for which to evaluate the function.

Value

The values in x but with out of bounds values discarded.

Examples

# Regular numeric vectors discardOob(c(0:5), c(2, 4))
#> [1] 2 3 4