calculate_ratios {lans2r} | R Documentation |
Calculate isotope ratios
Description
This function calculates the ratios and resulting counting statistics error from the raw ion counts. It can be applied to data from both LANS_summary and LANS_maps loading but can be slow if LANS_maps is combined from many analyses. It can also be applied to ion_sums generate by calculate_sums to calculate elemental ratios (careful, ionization efficiencies skew their scaling!)
Usage
calculate_ratios(data, ..., name_fun = default_name, quiet = FALSE)
Arguments
data |
a data frame with raw ion counts retrieved from |
... |
the ratios to calculate, each entry is one ratio with major isotope first, then
minor isotope, e.g. c( |
name_fun |
the naming function, receives ... from the top level, default concatenates column names with '/' |
quiet |
whether the function should output information messages or be quiet (default is to output) |
Value
the original data frame with the ratio information appended (all ratios have data_type == "ratio")
See Also
Other calculations:
calculate_abundances()
,
calculate_sums()
,
calculate()