delimit_units: Wrap a unit in delimiters if required

Description Usage Arguments Value See Also

Description

A helper to merge_units that wraps the unit in the delimiter, or not, according to rule.

Usage

1
delimit_units(units, delimiter, rule)

Arguments

units

Character string[s] each containing a single unit

delimiter

A single-character string indicating the delimiter to be used

rule

Character string indicating the delimitation rule to follow.

Value

A character vector of the same length as units, with each string delimited if required by rule.

See Also

Other unit-merging functions: merge_units


appling/unitted documentation built on May 10, 2019, 12:44 p.m.