Create a new Statistic object.
Arguments
- name
character
name of statistic.- value
numeric
value orNA_real_
. This parameter describes the statistic in absolute terms (e.g. 30).- units
character
value. This parameter contains the units for the statistic (e.g. `"km- proportion
numeric
value (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%]