reorder_class_hetero: reorder_class_hetero

Description Usage Arguments Value

View source: R/reorder_class_hetero.R

Description

This function orders heteroatom classes from O1 to Omax through CHNO_S1 to CHNOS_max for use in summarizing and visualizing heteroatom class data. It orders the factors based on a computed value, "level", which is discarded after reordering. The levels increase in a nested fashion by number of O, then number of N, and then number of S. The function is currently limited to the default class of elements: C, H, N, O, S.

Usage

1

Arguments

df

a tibble containing a table of the assigned elements with a column name for each element (e.g., "C", "H", "N", "O" and "S")

Value

a vector the heteroatom classes as ordered factors


robertyoung3/MSanalyzeNOM documentation built on June 7, 2021, 7:46 a.m.