README.md

Unit Converter R Package

Overview

This package implements unit conversion for time, length, and weight/mass.

Time Conversion

Length Conversion

This function converts between units of length. It can convert between the metric and imperial systems. The only units that are available for conversion are: "inch" "cm" "m" "km" "mm" "microm" "nm" "ft" "yd" "mile"

Weight/Mass Conversion: weight_conv()

This function converts between mass/weight units. It can convert between the metric and imperial systems. For know the only units that are available for conversion are: "mg" "cg" "dg" "g" "dag" "hg" "kg" "oz" "lb" "T"

Usage:

n = quantity to change,

from = unit of quantity to change,

to = desired unit to be converted to.

weight_conv(n, from, to)

Examples of usage:

weight_conv(10, "mg", "oz")

weight_conv(60, "kg", "g")

length_conv(23, "mile", "nm")

length_conv(14, "m", "ft")



aminondo/iX-Rpackage documentation built on May 20, 2019, 2:43 p.m.