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)
Arguments
...: Any complex, numeric, or character object
na.rm: logical, indicates if NA's should be removed.
finite: logical, indicates if non-finite elements should be omitted.
Returns
A complex vector describing a rectangle that all input values fall within.