Weight value object
weight.RdBuild a weight value object for create_individual()'s weight argument
(or the writable Individual$weight / OriginData$weight field). Fills
the OriginData Weight characteristic (list(Value =, Unit =)).
Value
A weight_spec object to pass to create_individual().
See also
Other value-object helpers:
age(),
error(),
fraction_unbound(),
gestational_age(),
height(),
intestinal_permeability(),
lipophilicity(),
permeability(),
solubility(),
time(),
values()
Examples
weight(70)
#> $value
#> [1] 70
#>
#> $unit
#> [1] "kg"
#>
#> attr(,"class")
#> [1] "weight_spec" "osp_value_spec"
create_individual(name = "Subject", weight = weight(70))
#>
#> ── Individual: Subject ─────────────────────────────────────────────────────────
#>
#> ── Characteristics ──
#>
#> • Weight: 70 kg