bounding_ranges {affiner} | R Documentation |
Compute axis-aligned ranges
Description
range()
computes axis-aligned ranges for
Coord1D, Coord2D, and Coord3D class objects.
Usage
## S3 method for class 'Coord1D'
range(..., na.rm = FALSE)
## S3 method for class 'Coord2D'
range(..., na.rm = FALSE)
## S3 method for class 'Coord3D'
range(..., na.rm = FALSE)
Arguments
... |
|
na.rm |
logical, indicating if |
Value
Either a Coord1D, Coord2D, or Coord3D object of length two. The first element will have the minimum x/y(/z) coordinates and the second element will have the maximum x/y(/z) coordinates of the axis-aligned ranges.
Examples
range(as_coord2d(rnorm(5), rnorm(5)))
range(as_coord3d(rnorm(5), rnorm(5), rnorm(5)))
[Package affiner version 0.1.3 Index]