mass: Access properties of a molecule object

Description Usage Arguments Value Examples

View source: R/molecule.R

Description

Access properties of a molecule object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
mass(x)

## Default S3 method:
mass(x)

## S3 method for class 'molecule_single'
mass(x)

## S3 method for class 'mol'
mass(x)

## S3 method for class 'reaction'
mass(x)

## S3 method for class 'reaction_list'
mass(x)

charge(x)

charge(x) <- value

## S3 replacement method for class 'molecule_single'
charge(x) <- value

## S3 replacement method for class 'mol'
charge(x) <- value

## Default S3 method:
charge(x)

## S3 method for class 'reaction'
charge(x)

## S3 method for class 'reaction_list'
charge(x)

## S3 method for class 'molecule_single'
charge(x)

## S3 method for class 'mol'
charge(x)

Arguments

x

A molecule object or symbol string

value

A replacement value

Value

The mass of the molecule or element in g/mol

Examples

1
2
3
mass("H")
m <- as_molecule_single("H2O")
mass(m)

paleolimbot/chemr documentation built on Sept. 11, 2021, 2:02 p.m.