linearize: Smooth reflectance artifacts

Description Usage Arguments Value Author(s)

View source: R/linearize.r

Description

This function removes artifactual peaks in reflectance profiles by applying linear smoothing on a portion of the profile.

Usage

1
linearize(specs, where, cols = 2:ncol(specs))

Arguments

specs

An rspec data frame (pavo).

where

A numeric vector of two numbers defining between what and what wavelength is the smoothing to be applied (e.g. where = c(620, 630) for smoothing between 620 and 630nm).

cols

A vector of column numbers, indicating what measurements to apply the smoothing to. Defaults to all. Note: first measurement is column 2.

Value

An rspec data frame with artifacts removed.

Author(s)

Raphael Scherrer


rscherrer/sagreicolor documentation built on May 26, 2019, 12:32 p.m.