Learn R Programming

spectrolab (version 0.0.18)

range.spectra: Range of spectral values

Description

range Returns the range of (min, max) values in spectra

Usage

# S3 method for spectra
range(..., na.rm = FALSE)

Value

tuple of numeric values (min, max)

Arguments

...

spectra object

na.rm

boolean. remove NAs? Defaults to FALSE

Author

Jose Eduardo Meireles

Examples

Run this code

library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
range(spec)

Run the code above in your browser using DataLab