Learn R Programming

measurements (version 1.5.1)

conv_multiunit: Convert Units of Measurement Composed of Multiple Units

Description

Converts complex units of measurement that are joined by " / " or " * ". This function supports all dimensions in conv_unit_options except for coordinates.

Usage

conv_multiunit(x = 1, from, to)

Arguments

x

a numeric vector giving the measurement value in its original units. Default is 1.

from, to

a string defining the multiunit with subunits separated by " / " or " * ".

Author

Matthew A. Birk, matthewabirk@gmail.com

See Also

conv_unit, conv_unit_options, conv_dim

Examples

Run this code
conv_multiunit(x = 10, from = "ft / hr * F", to = "m / min * C")
conv_multiunit(x = 1:100, from = "gal_per_min * ft / psi * hp", to = "l_per_hr * km / kPa * kW")

Run the code above in your browser using DataLab