Description Usage Arguments Value
This function computes the Kendrick mass defect (KMD) for a measured or theoretical mass where CH2 (14.01565u) is the repeating unit (Kendrick 1963 and Hughey et al. 2001). The theoretical value is identical across members of the same homologous CH2 series, and is useful when grouping for plots and other purposes. The experimental (i.e., measured) value is useful, especially in combination with the appropriate z score, for identifying homologous CH2 series while assigning formulas to measured m/z values. The number of digits can be specified to limit rounding errors in the KMD calculation.
1 | compute_KMD_CH2(df, KMDtype = "theor", num_digits = 4)
|
df |
a tibble containing the following column names: "mz" and "theor_mz" |
KMDtype |
a character string in c("exper", "theor") identifying the desired calculation |
num_digits |
an integer indicating the number of desired digits for the KMD value (default = 4) |
df with a column containing the desired KMD values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.