R/compute_processed.R

Defines functions lr_compute_processed

Documented in lr_compute_processed

#' Compute processed spectral data
#'
#' Compute processed spectral data, from the raw count/scope data, counts from
#' a dark reference, and from a white reference.
#'
#' @param spdata data.frame containing the spectral data with the columns
#'   'scope', 'dark', and 'white'
#'
lr_compute_processed <- function(spdata) {

  with(spdata, (scope - dark) / (white - dark) * 100)

}

Try the lightr package in your browser

Any scripts or data that you put into this service are public.

lightr documentation built on May 14, 2022, 5:05 p.m.