conv_multiunit: Convert Units of Measurement Composed of Multiple Units

View source: R/conv_multiunit.R

conv_multiunitR Documentation

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(s)

Matthew A. Birk, matthewabirk@gmail.com

See Also

conv_unit, conv_unit_options, conv_dim

Examples

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")


measurements documentation built on April 29, 2023, 1:13 a.m.