knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of convertr is to convert values from unit of measurement to other.
You can install the released version of convertr from Github with:
install.packages("devtools") library(devtools) install_github("scarecrow21/convertr")
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.