Skip to contents

Extract the unit of a parameter from a description like "Param (unit)".

Usage

extract_unit(x)

Arguments

x

A parameter description

Value

A string

See also

Utilities used within Derivation functions: call_user_fun(), get_not_mapped(), signal_duplicate_records()

Examples

extract_unit("Height (cm)")
#> [1] "cm"

extract_unit("Diastolic Blood Pressure (mmHg)")
#> [1] "mmHg"