merge_units: Turn a units data.frame into the character representation of...

Description Usage Arguments Value See Also

View source: R/01-parse.R

Description

Turn a units data.frame into the character representation of the units

Usage

1
2
merge_units(unitdfs, delimiter = "|", rule = c("disambiguate", "never",
  "always"), separator = " ")

Arguments

unitdfs

list of unit data.frames, such as those returned by a call to parse_units

delimiter

A single-character string designating the delimiter that should surround those units that are to be delimited according to rule

rule

character string indicating the rule by which each unit within a unitdf will be delimited or not. The default, "disambiguate", wraps only those units that contain spaces or "^" characters. "never" wraps none, and "always" wraps all.

separator

character indicating a split among pieces of a unit, e.g., "mg L^-1" is separated by " ".

Value

list of character strings, one for each data.frame passed in

See Also

Other unit-merging functions: delimit_units


appling/unitted documentation built on July 24, 2017, 8:40 a.m.