range | R Documentation |
This function extends base::range to the field of complex numbers. It returns a vector containing two complex numbers that are the diagonal points of a rectangle, with sides parallel to the real and imaginary axes, that just contains all the complex numbers given as arguments. If given non complex input it calls base::range, please see the documentation for that function for an explanation of its behavior with other input.
range(..., na.rm = FALSE, finite = FALSE)
... |
Any complex, numeric, or character object |
na.rm |
logical, indicates if |
finite |
logical, indicates if non-finite elements should be omitted. |
A complex vector describing a rectangle that all input values fall within.
base::range
set.seed(4242)
n <- 8
foo <- complex(real = rnorm(n), imaginary = rnorm(n))
range(foo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.