localBaselineCorrect: local baseline correct, substract a baseline either trough 1...

Description Usage Arguments Value Author(s) Examples

View source: R/spectralPreprocessing.R

Description

local baseline correct, substract a baseline either trough 1 or 2 points

Usage

1
localBaselineCorrect(object, baseWavelengths = NULL)

Arguments

object

SpectraInTime-class

baseWavelengths

numeric vector of 1 or 2 wavelength use to draw a baseline trough, defaults to NULL when no baseline correction is performed

Value

SpectraInTime-class with baseline subset

Author(s)

Adriaan Blommaert

Examples

1
2
3
4
5
6
7
8
9
spectra              <-  getSpectraInTimeExample()
spectraConstCorrect  <-  localBaselineCorrect( spectra , baseWavelengths = 240  )
spectraLinCorrect    <-  localBaselineCorrect( spectra , c( 250 , 330 )  ) 
## Not run: 
plot( spectra )
plot( spectraConstCorrect )
plot( spectraLinCorrect ) 

## End(Not run)

spectralAnalysis documentation built on June 12, 2018, 5:04 p.m.