celsius.to.fahrenheit {weathermetrics}R Documentation

Convert from Celsius to Fahrenheit.

Description

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

Usage

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

Arguments

T.celsius

Numeric vector of temperatures in Celsius.

round

An integer indicating the number of decimal places to round the converted value.

Value

A numeric vector of temperature values in Fahrenheit.

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

fahrenheit.to.celsius

Examples

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


[Package weathermetrics version 1.2.2 Index]