https://github.com/cran/baseline
Raw File
Tip revision: 5742c3a04407bca083c5abf0e385a01e2f461a87 authored by Kristian Hovde Liland on 09 January 2011, 00:00:00 UTC
version 1.0-0
Tip revision: 5742c3a
getBaseline.Rd
\name{getBaseline}
\alias{getBaseline}
\alias{getSpectra}
\alias{getCorrected}
\alias{getCall}
\title{
Functions to extract the components of a "baseline" object
}
\description{
The functions extract the \code{baseline}, \code{spectra},
\code{corrected} or \code{call} slot of a \code{\linkS4class{baseline}}
object; usually the result of a call to \code{\link{baseline}}.
}
\usage{
getBaseline(object)
getSpectra(object)
getCorrected(object)
getCall(object)
}
\arguments{
  \item{object}{A \code{\linkS4class{baseline}} object}
}
\value{
  \code{getCall} returns the \code{baseline} call used to create the
  object.  The other functions return a matrix with the original
  spectra, estimated baselines or corrected spectra.
}
\author{Bjřrn-Helge Mevik and Kristian Hovde Liland}

\section{Warning}{In a future versoion, one of the slots might be
  removed from the class definition and calculated on the fly instead,
  in order to save space.  Therefore, \emph{do} use the extractor
  functions (\code{getSpectra}, \code{getBaseline} and
  \code{getCorrected}) instead of accessing the slots directly.}

\seealso{
  The function \code{\link{baseline}}, the class \code{\linkS4class{baseline}}
}
\examples{
data(milk)
bl <- baseline(milk$spectra[1:2,])
getBaseline(bl)
getSpectra(bl)
getCorrected(bl)
getCall(bl)
}
\keyword{ spectra }
\keyword{ baseline }
back to top