blob: 77ff2b6e5d3662039f86ad95eddb10a601160fd7 (
plain) (
blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# R6 class for a plant protection product with at least one active ingredient
Contains basic information about the active ingredients in the product
## Format
An [R6::R6Class](https://r6.r-lib.org/reference/R6Class.html) generator
object.
## Public fields
- `name`:
The name of the product
- `ais`:
A list of active ingredients
- `concentrations`:
The concentration of the ais
- `concentration_units`:
Defaults to g/L
- `density`:
The density of the product
- `density_units`:
Defaults to g/L
## Methods
### Public methods
- [`ppp$new()`](#method-ppp-new)
- [`ppp$clone()`](#method-ppp-clone)
------------------------------------------------------------------------
### Method `new()`
Creates a new instance of this
[R6](https://r6.r-lib.org/reference/R6Class.html) class.
#### Usage
ppp$new(
name,
...,
concentrations,
concentration_units = "g/L",
density = 1000,
density_units = "g/L"
)
#### Arguments
- `name`:
The name of the product
- `...`:
Identifiers of the active ingredients
- `concentrations`:
Concentrations of the active ingredients
- `concentration_units`:
Defaults to g/L
- `density`:
The density
- `density_units`:
Defaults to g/L
------------------------------------------------------------------------
### Method `clone()`
The objects of this class are cloneable with this method.
#### Usage
ppp$clone(deep = FALSE)
#### Arguments
- `deep`:
Whether to make a deep clone.
|