Extract the unit of a parameter from a description like "Param (unit)".
extract_unit(x)A string
Utilities used within Derivation functions:
get_flagged_records(),
get_not_mapped(),
get_vars_query()
extract_unit("Height (cm)")
#> [1] "cm"
extract_unit("Diastolic Blood Pressure (mmHg)")
#> [1] "mmHg"