Learn R Programming

spectrolab (version 0.0.18)

max.spectra: Maximum value

Description

max Returns the maximum value in a spectra object

Usage

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

Value

single numeric value

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)
max(spec)

Run the code above in your browser using DataLab