Learn R Programming

ume (version 1.5.2)

order_columns: Order columns

Description

Take most prominent columns required for data evaluation first - followed by all other columns.

Usage

order_columns(mfd, col_order = NULL, ...)

Value

A data.table containing isotope data for those isotopes present in mfd.

Arguments

mfd

data.table with molecular formula data as derived from ume::assign_formulas. Column names of elements/isotopes must match names in the isotope column of ume::masses; values are integers representing counts per formula.

col_order

A list of column names that defines the order of columns of mfd. Default is: cols = c("sample_tag", "sample_id", "file", "file_id", "peak_id", "i_magnitude", "norm_int", "m", "m_cal", "ppm", "nm", "mf", "dbe", "c", "h", "n", "o", "p", "s", "hc", "oc", "nc", "sc", "ai", "z", "kmd") If "cols" is NULL the default order is applied.

...

Additional arguments passed to methods.

See Also

Other tools: add_missing_element_columns()

Examples

Run this code
order_columns(mfd = mf_data_demo)

Run the code above in your browser using DataLab