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")
#> [1] 273.15
## Convert temperature from meter to kilometer.
convert_distance(1000, from = "meter", to = "kilometer")
#> [1] 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.