Create a new Statistic object.
Arguments
- name
- charactername of statistic.
- value
- numericvalue or- NA_real_. This parameter describes the statistic in absolute terms (e.g. 30).
- units
- charactervalue. This parameter contains the units for the statistic (e.g. `"km
- proportion
- numericvalue (optional) . This parameter describes the statistic in relative terms (e.g. 30%). Note that values are expressed as a proportion (e.g. 0.3 indicates 30%).
Value
A Statistic object.
Examples
# create a statistic
x <- new_statistic(name = "Area", value = 12, units = "ha", proportion = 0.4)
# print object
print(x)
#> Area 12 ha [40%]