weight: Weight an isotope value object

Description Usage Arguments Note See Also Examples

Description

weight(iso, weight) adds a weight (can be thought of as mass or concentration) to an isotopic value which will be used to weigh the isotope value when adding together multiple isotope values. get_weight(iso) returns the weight of an isotope value object.

Usage

1
2
3
4
5
6
7
weight(iso, weight)

## S4 method for signature 'ANY,ANY'
weight(iso, weight)

## S4 method for signature 'Isoval,numeric'
weight(iso, weight)

Arguments

iso

- object to get weight or add weight

weight

- vector of weight values, has to be a single value or the same length as the data stored in the isotope value object.

Note

This can also be achieved when first initializing (or updating) an object via calls to ratio, abundance, delta, etc.

See Also

Other data type attributes: get_name, get_value, get_weighted_value, get_weight, set_attrib, switch_notation

Examples

1
2
3
r <- ratio(0.2)
r <- weight(r, 10)
print(get_weight(r)) # returns 10

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