This package was created to facilitate the conversion between temperatures scales. In particular, all permutations of conversions between Celsius, Kelvin & Fahrenheit have been implemented.

To get started, we load the library:

library(convertempr)

Next, we’ll create some Fahrenheit temperature data (that later we will convert to Celsius):

temps <- c(69.2, 71.1, 69.0, 70.4, 70.9)

Let’s now convert the Fahrenheit temperature data to Celsius:

fahr_to_celsius(temps)
#> [1] 20.66667 21.72222 20.55556 21.33333 21.61111

That’s it folks! You use all the functions in this package the same way, choosing the function based on the temperature conversion you are wanting to make!