README.md

conversionr

This is an R package to convert between volume, mass, temperature, and distance units. The package covers converting between basic units of the forementioned categories, and also covers conversions between metric units.

Installation

Currently, the package is only available from this GitHub repo, and is not in the CRAN database yet. To install this package and its contents, open up an R console and run this line:

devtools::install_github('alexnakagawa/conversionr')

Usage of Conversionr functions

It's very simple to convert units using the conversionr package. You can easily convert units like temperature, volume, mass, and distance using the functions conv_temp, conv_volume, conv_mass, and conv_dist for the most common units. You can also convert in between milli, centi, base, and kilo for the metric system using conv_metric. Check the examples below:

If you want to convert 100 degrees Fahrenheit to Celsius run the function this way:

conv_temp(100, "f", "celsius")

For volume conversions, the logic is pretty much the same:

conv_vol(25, "pint", "qt")

The same format follows for mass, and distance:

conv_mass(1,"lb","oz")

conv_dist(4,'feet','m')

To convert in between values of the metric system you can do it like so:

conv_metric(5,"milli","kilo")

Authors

Alex Nakagawa (Github) // Camila Ferreira (Github) // Rohan Karanth (Github)



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