A function that returns the spread (max(x) - min(x)) for R objects.
Usage
spread(x, ...)
"spread"(x, ...)
"spread"(x, ...)
"spread"(x, ...)
"spread"(x, ...)
"spread"(x, ..., idx = !is.null(names(x)))
Arguments
x
an R object
...
not used in current version
idx
logical whether to add a column with the names of the elements of spct
Value
A numeric value equal to max(x) - min(x). In the case of spectral
objects wavelength difference in nm. For any other R object, according to
available definitions of min and max.
Methods (by class)
default: Default method for generic function
numeric: Method for "numeric"
waveband: Method for "waveband"
generic_spct: Method for "generic_spct"
generic_mspct: Method for "generic_mspct" objects.