knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

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")

## Convert temperature from meter to kilometer.
convert_distance(1000, from = "meter", to = "kilometer")


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