eem_setNA: set parts of specific samples to NA and optionally...

View source: R/correction_functions.R

eem_setNAR Documentation

set parts of specific samples to NA and optionally interpolate these parts

Description

set parts of specific samples to NA and optionally interpolate these parts

Usage

eem_setNA(
  eem_list,
  sample = NULL,
  em = NULL,
  ex = NULL,
  interpolate = TRUE,
  ...
)

Arguments

eem_list

EEMs as eemlist

sample

optional, names or indices of samples to process

em

optional, emission wavelengths to set NA

ex

optional, excitation wavelengths to set NA

interpolate

FALSE, 1 or 2, interpolate NAs or not, 2 different methods, see eem_interp

...

arguments passed on to eem_interp

Details

Samples and wavelengths are optional and if not set all of them are considered in setting data to NA. Wavelengths can be set as vectors containing more than the wavelengths present in the data. E.g. 230:250 removes all wavelengths between 230 and 250 if present. Data is best interpolated if it does not reach data boundaries. Please check the results otherwise as in some cases the interpolation might not produce meaningful data.

Value

eemlist

Examples

data(eem_list)
eem <- eem_list[1:9]
class(eem) <- "eemlist"

ggeem(eem)

eem_list2 <- eem_setNA(eem,ex=200:280,em=500:600, interpolate=FALSE)
ggeem(eem_list2)

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