eem_red2smallest {staRdom} | R Documentation |
Remove wavelengths, that are missing in at least one sample form the whole set.
Description
Remove wavelengths, that are missing in at least one sample form the whole set.
Usage
eem_red2smallest(data, verbose = FALSE)
Arguments
data |
data of EEM samples as eemlist |
verbose |
states whether additional information is given in the command line |
Details
This step is neccessary to perform a PARAFAC analysis which can only be calculated with spectra of similar range.
Value
eemlist with reduced spectral width
Examples
require(dplyr)
data(eem_list)
eem_list_red <- eem_red2smallest(eem_list)
# create an eemlist where data is missing
eem_list2 <- eem_exclude(eem_list,
list("ex" = c(280,290,350),
"em" = c(402,510),
"sample" = c()))
# modify names of samples with missing data
eem_names(eem_list2) <- paste0("x",eem_names(eem_list2))
# combined the lists with and without missing data
eem_list3 <- eem_bind(eem_list,eem_list2)
#ggeem(eem_list3)
# reduce the data in the whole sampleset to the smallest wavelengths that are present in all samples
eem_list4 <- eem_red2smallest(eem_list3)
#ggeem(eem_list4)
[Package staRdom version 1.1.28 Index]