staRdom (version 1.0.3)

eem_rem_scat: 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()/2)

Arguments

data

object of class eemlist

remove_scatter

named logical vector. The names of the vector must be out of "raman1", "raman2", "rayleigh1" and "rayleigh2". 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

Value

eemlist

Examples

Run this code
# NOT RUN {
data(eem_list)

remove_scatter <- c()
remove_scatter["raman1"] = TRUE
remove_scatter["raman2"] = TRUE
remove_scatter["rayleigh1"] = TRUE
remove_scatter["rayleigh2"] = TRUE
remove_scatter_width = c(15,10,16,12)

eem_rem_scat(eem_list,remove_scatter,remove_scatter_width)
# }

Run the code above in your browser using DataLab