Learn R Programming

weathermetrics (version 1.2.2)

fahrenheit.to.celsius: Convert from Fahrenheit to Celsius.

Description

fahrenheit.to.celsius creates a numeric vector of temperatures in Celsius from a numeric vector of temperatures in Fahrenheit.

Usage

fahrenheit.to.celsius(T.fahrenheit, round = 2)

Arguments

T.fahrenheit
Numeric vector of temperatures in Fahrenheit.
round
An integer indicating the number of decimal places to round the converted value.

Value

A numeric vector of temperature values in Celsius.

See Also

celsius.to.fahrenheit

Examples

Run this code
# Convert from Fahrenheit to Celsius.
data(norfolk)
norfolk$TempC <- fahrenheit.to.celsius(norfolk$TemperatureF)
norfolk

Run the code above in your browser using DataLab