The function tries to lead you to possible problems in your data.
eem_checkdata(eem_list, absorbance, metadata = NULL, metacolumns = NULL,
error = TRUE)
eemlist continaing EEM data.
data.frame containing absorbance data.
optional data.frame containing metadata.
character vector of columns that are checkt for complete data sets
logical, whether a problem should cause an error or not.
writes out possible porblems to command line, additionally list with sample names where possible problems were found, see details.
The returned list contains character vectors with sample names where possible problems were found: problem (logical, whether a severe problem was found), nas (sample names with NAs in EEM data), missing_correction (correction of EEM samples was not done or not done successfully),eem_no_abs (EEM samples with no absorbance data), abs_no_eem (samples with present absorbance but no EEM data), duplse (duplicate sample names in EEM data), duplsa (duplicate sample names in absorbance data), invalid_eem (invalid EEM sample name), invalid_abs (invalid absorbance sample name), range_mismatch (wavelength ranges of EEM and absorbance data are mismatching), metadupls (duplicate sample names in metadata), metamissing (EEM samples where metadata is missing), metaadd (samples in metadata without EEM data)
# NOT RUN {
data(eem_list)
data(abs_data)
eem_checkdata(eem_list,abs_data)
# }
Run the code above in your browser using DataLab