arithmetic: Molecule arithmetic

Description Usage Arguments Value Examples

Description

Molecule arithmetic

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
## S3 method for class 'molecule_single'
x * y

## S3 method for class 'molecule_single'
x / y

## S3 method for class 'molecule_single'
x + y

combine_molecules(...)

## S3 method for class 'molecule_single'
x == y

## S3 method for class 'mol'
x * y

## S3 method for class 'mol'
x / y

## S3 method for class 'mol'
x + y

## S3 method for class 'mol'
x == y

Arguments

x

A mol object

y

The object with which to perform arithmetic

...

Objects to combine

Value

A mol object

Examples

1
2
3
m <- as_mol("H2O")
m*2
m + as_mol("H+")

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