eem_rem_scat: Remove Raman and Rayleigh scattering in fluorescence data

View source: R/correction_functions.R

eem_rem_scatR Documentation

Remove Raman and Rayleigh scattering in fluorescence data

Description

Wrapper function to remove several scatterings in one step using eem_remove_scattering.

Usage

eem_rem_scat(
  data,
  remove_scatter,
  remove_scatter_width = 10,
  interpolation = FALSE,
  cores = parallel::detectCores(logical = FALSE),
  verbose = FALSE
)

Arguments

data

object of class eemlist

remove_scatter

logical vector. The meanings of the vector are "raman1", "raman2", "rayleigh1" and "rayleigh2" scattering. Set TRUE if certain scattering should be removed.

remove_scatter_width

numeric vector containing width of scattering to remove. If there is only one element in this vector, each this is the width of each removed scattering. If there are 4 values, differnt widths are used ordered by "raman1", "raman2", "rayleigh1" and "rayleigh2".

interpolation

logical, optionally states whether interpolation is done right away

cores

optional, CPU cores to use for interpolation

verbose

logical, provide additional information

Value

eemlist

Examples

data(eem_list)

remove_scatter <- c(TRUE, TRUE, TRUE, TRUE)

remove_scatter_width = c(15,10,16,12)

eems <- eem_rem_scat(eem_list,remove_scatter,remove_scatter_width)
ggeem(eems)

staRdom documentation built on July 9, 2023, 5:57 p.m.