Learn R Programming

ltertools (version 2.0.0)

convert_temp: Convert Temperature Values

Description

Converts a given set of temperature values from one unit to another

Usage

convert_temp(value = NULL, from = NULL, to = NULL)

Value

(numeric) converted temperature values

Arguments

value

(numeric) temperature values to convert

from

(character) starting units of the value, not case sensitive.

to

(character) units to which to convert, not case sensitive.

Examples

Run this code
# Convert from Fahrenheit to Celsius
convert_temp(value = 32, from = "Fahrenheit", to = "c")

Run the code above in your browser using DataLab