Description Usage Arguments Value Examples
Access properties of a molecule object
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)
|
x |
A molecule object or symbol string |
value |
A replacement value |
The mass of the molecule or element in g/mol
1 2 3 | mass("H")
m <- as_molecule_single("H2O")
mass(m)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.