Learn R Programming

birk (version 1.3.0)

conv_unit: Convert Units of Measurement

Description

Converts common units of measurement for a variety of dimensions. See conv_unit_options for all options.

Usage

conv_unit(x, from, to)

Arguments

x
the measurement value or vector of values in its original units.
from
the unit in which the measurement was made.
to
the unit to which the measurement is to be converted.

encoding

UTF-8

Details

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] The conversion values have been defined based primarily from international weight and measurement authorities (e.g. General Conference on Weights and Measures, International Committee for Weights and Measures, etc.). While much effort was made to make conversions as accurate as possible, you should check the accuracy of conversions to ensure that conversions are precise enough for your applications.

See Also

conv_unit_options

Examples

Run this code
conv_unit(2.54, cm, inch) # Result = 1 inch
conv_unit(seq(1, 10), kg, short_ton) # A vector of measurement values can be converted
conv_unit("33 1 1", deg_min_sec, dec_deg)
conv_unit(c("101 44.32","3 19.453"), deg_dec_min, deg_min_sec)

Run the code above in your browser using DataLab