extractNameAndUnit: extractNameAndUnit

View source: R/utilities-qualification.R

extractNameAndUnitR Documentation

extractNameAndUnit

Description

Returns a named list with two entries (name, unit) corresponding to the name and unit extracted out of the text provided as parameter

Usage

extractNameAndUnit(text)

Arguments

text

Character from which name and unit are extracted

Value

A named list, with fields name and unit.

Examples

## Not run: 
res <- extractNameAndUnit("Value [mg]")
res$name
# > "Value"
res$unit
# > "mg"

res <- extractNameAndUnit("Value")
res$name
# > "Value"
res$unit
# > ""

## End(Not run)

Open-Systems-Pharmacology/OSPSuite.ReportingEngine documentation built on April 13, 2025, 10:37 a.m.