fahrenheit.to.celsius {weathermetrics}R Documentation

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.

Note

Equations are from the source code for the US National Weather Service's online heat index calculator.

Author(s)

Brooke Anderson brooke.anderson@colostate.edu, Roger Peng rdpeng@gmail.com

See Also

celsius.to.fahrenheit

Examples

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


[Package weathermetrics version 1.2.2 Index]