i_reflectance: Implementation of s3 class for spectra

Description Usage Arguments Details Value

Description

Construct reflectance matrix in the appropriate format

Usage

1
i_reflectance(x, nwavelengths = NULL, nsample = NULL, enforce01 = TRUE)

Arguments

x

numeric matrix, dataframe or vector (in case of single spectrum)

nwavelengths

Integer of expected number of wavelengths. If NULL (default) checking is skipped.

nsample

Integer of expected number of samples. If NULL (default) checking is skipped.

enforce01

Boolean. enforce reflectance to be between 0.0 and 1.0? Defaults to TRUE

Details

Coerces input form different forms into data conformable to reflectance, which is a numeric matrix

Value

data conformable to relative reflectance: numeric matrix of values between 0.0 and 1.0.


annakat/casper_defunct documentation built on May 10, 2019, 11:50 a.m.