README.md

convertr

The goal of convertr is to convert values from unit of measurement to other.

Installation

You can install the released version of convertr from Github with:

install.packages("devtools")
library(devtools)
install_github("scarecrow21/convertr")

Example

This is a basic example which shows you how to convert temperature.

library(convertr)
## Convert temperature from celsius to kelvin.
convert_temperature(0, from = "celsius", to = "kelvin")
#> [1] 273.15

## Convert temperature from meter to kilometer.
convert_distance(1000, from = "meter", to = "kilometer")
#> [1] 1


scarecrow21/convertr documentation built on June 8, 2019, 3:46 a.m.