unit.multiplier: unit.multiplier

Description Usage Arguments Details Value Author(s) Examples

Description

Finds the conversion multiplier from one unit to another.

Usage

1
2
  unit.multiplier(unit = "distance",
    from = rownames(unitMat), to = colnames(unitMat))

Arguments

unit

Type of unit to be converted.

from

The units to be converted from.

to

The units to be converted to.

Details

Finds the conversion multiplier from one unit to another.

Value

A matrix of multipliers for converting from to to.

Author(s)

Jared P. Lander

Examples

1
2
3
4
5
6
unit.multiplier()
unit.multiplier(from="meters", to="miles")
unit.multiplier(from=c("meters", "feet"), to="miles")
unit.multiplier(from="feet", to=c("miles", "kilometers"))
unit.multiplier(from=c("meters", "feet"), to=c("miles", "kilometers"))
unit.multiplier(from=c("meters", "feet"), to=c("miles", "kilometers"), unit="distance")

jaredlander/mapping documentation built on May 18, 2019, 3:46 p.m.