| as_peaklist | R Documentation |
Flexible entry point for UME. Accepts:
data.frame / data.table peaklists
numeric m/z vectors
file paths (csv, txt, tsv, rds)
Normalizes column names, adds missing structural columns (file_id, peak_id),
removes invalid rows, validates schema, and assigns the UME peaklist class.
Creates a standardized data.table ready for formula assignment.
as_peaklist(pl, verbose = FALSE, track_original_names = TRUE, ...)
pl |
Input object representing a peaklist. Can be:
|
verbose |
logical; if |
track_original_names |
Logical (default: TRUE). If TRUE,
|
... |
Reserved for future extensions. |
A validated and normalized peaklist as a data.table
with class "ume_peaklist".
Other check ume objects:
check_formula_library(),
check_mfd()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.