ratio: Isotope ratio

Description Usage Arguments See Also Examples

View source: R/initialization.R

Description

Generate isotope ratio objects. See isotopia for general information on initializing and converting isotope data objects.

Usage

1
2
ratio(..., major = get_iso_opts("default_major"), compound = "",
  weight = numeric(), single_as_df = FALSE)

Arguments

...

- numeric vectors (can be named) to turn into isotope ratio objects

major

- name of the major isotope in the single ratio or isotope system [optional]

compound

- name of the compound the isotopic values belong to [optional]

weight

- weight the isotope value (with a mass, concentration, etc.) for easy mass balance calculations. The default value is 1, i.e. an unweighted isotope value. If specified, weight must be a single value or a numeric vector of the same size as the data values. The weight of an isotope value obejct can be retrieved and (re)set with the weight function.

See Also

Other isotope data types: abundance, delta, fractionation_factor, intensity

Examples

1
2
3
4
ratio(0.1) # single value
ratio(c(0.1, 0.2, 0.3)) # multiple values
ratio(`13C` = c(0.1, 0.2, 0.3)) # named ratio
ratio(`33S` = c(0.1, 0.2, 0.3), `34S` = c(0.2, 0.4, 0.6), major = "32S") # isotope system

isoverse/isotopia documentation built on Nov. 5, 2019, 2:40 p.m.