Range class for physiological parameters
Range-class.RdAn R6 class that represents a range of values with a minimum, maximum and
unit. Used for age, weight, height, and BMI ranges in populations. Either
min or max can be NULL to represent ranges with only an upper or
lower bound.
Use range() as the user-facing constructor; Range$new() is the
equivalent direct call on the R6 generator.
Active bindings
minThe minimum value of the range
maxThe maximum value of the range
unitThe unit of the range.
Rangeis dimension-agnostic (it holds no dimension of its own), sounitis not validated here; dimension-aware unit validation happens at thePopulationrange setters that consume aRange(age_range,weight_range,height_range,gestational_age_range,bmi_range), where the field's dimension is known. Do not add dimension validation to this binding.
Methods
Range$new()
Create a new Range object
Usage
Range$new(min, max, unit)