convertUnits: Wrapper for ud.convert that accepts vector inputs and...

Description Usage Arguments Details Value

Description

Wrapper for ud.convert that accepts vector inputs and multiple conversion candidates.

Usage

1
convertUnits(x, from, to, inconvertibles = c("preserve", "omit"))

Arguments

x

Numeric vector of values

from

Units of x values

to

Units to convert to.

inconvertibles

Should units that cannot be converted be preserved or omitted from the result?

Details

If length(to) > 0, units the first is tried first, followed by the second, etc. If units in from are already contained in to, these units are not converted.

Value

A data.frame with columns x and units


markwh/wqp documentation built on May 21, 2019, 12:37 p.m.