conv_dist: Convert metric units of distance between each other. The...

Description Usage Arguments Value Examples

Description

Convert metric units of distance between each other. The basic unit of distance is centimeters, expressed as 'cm'. Examples listed below.

Usage

1
conv_dist(num, from, to)

Arguments

num

The decimal number units of the 'from' units. Can also pass as vector.

from

The initial units before conversion, taken as a character. Includes: ft, m, mi, yard, in

to

The desired units after conversion, taken as a character. Includes: ft, m, mi, yard, in

Value

A decimal (or vector) displaying the number of 'to' units

Examples

1
2
conv_dist(15, 'ft', 'm')
conv_dist(60, 'yd', 'm' )

alexnakagawa/conversionr documentation built on May 20, 2019, 2:43 p.m.