extract_unit: Extract Unit From Parameter Description

Description Usage Arguments Examples

View source: R/utils.R

Description

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

Usage

1

Arguments

x

A parameter description

Examples

1
2
3
extract_unit("Height (cm)")

extract_unit("Diastolic Blood Pressure (mmHg)")

epijim/admiral documentation built on Feb. 13, 2022, 12:15 a.m.