S4Range: Range of Values

Description Usage Arguments Details Value Examples

Description

Returns a vector containing the minimum and maximum of all the given arguments.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
S4Range(x, ..., na.rm = FALSE, finite = FALSE, aes = "z")

## S4 method for signature 'knownContinuous'
S4Range(x, ..., na.rm = FALSE, finite = FALSE, aes = "z")

## S4 method for signature 'Rle'
S4Range(x, ..., na.rm = FALSE, finite = FALSE, aes = "z")

## S4 method for signature 'Ranges'
S4Range(x, ..., na.rm = FALSE, finite = FALSE, aes = "z")

## S4 method for signature 'GenomicRanges'
S4Range(x, ..., na.rm = FALSE, finite = FALSE, aes = "z")

## S4 method for signature 'WoodenHorse'
S4Range(x, ..., na.rm = FALSE, finite = FALSE, aes = "z")

Arguments

x

An object to determine the range of.

...

Optionally, more objects of the same class as x to include in the range calculation.

na.rm

logical of length 1: omit NA values prior to calculating ranges?

finite

logical of length 1: omit non-finite elements prior to calculating ranges?

aes

An aesthetic for which to evaluate the function.

Details

Defaults to the range function.

Value

A vector indicating lower- and upper-bounds of the input.

Examples

1
2
3
4
5
6
# For regular numeric vectors
S4Range(c(1:3, -1))

# GenomicRanges returns same type
require(GenomicRanges)
S4Range(GRanges(c("chr1:100-200", "chr2:200-300", "chr2:500-600")))

teunbrand/ggnomics documentation built on Aug. 2, 2020, 7:34 p.m.