Learn R Programming

spectrolab (version 0.0.12)

var.spectra: Variance spectrum

Description

Forces keep_txt_meta = TRUE

Usage

# S3 method for spectra
var(x, y = NULL, na.rm = TRUE, use)

Arguments

x

spectra

y

nothing

na.rm

boolean. remove NAs?

use

nothing

Value

single spectrum

Examples

Run this code
# NOT RUN {
library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
var(spec)
# }

Run the code above in your browser using DataLab