multiply_dose: Evaluate a multiplicative plaintext expression

View source: R/units.R

multiply_doseR Documentation

Evaluate a multiplicative plaintext expression

Description

Replaces written phrases like "2 x 5" with their arithmetic result (i.e. 10)

Usage

multiply_dose(axb)

Arguments

axb

An string expression of the form 'A x B' where A, B are numeric

Value

An equivalent string giving the product of A and B. If A is a range of values, a range of values is returned.

See Also

Used internally within extract_from_prescription


Selbosh/doseminer documentation built on May 6, 2023, 8:33 p.m.