Learn R Programming

weathermetrics (version 1.2.2)

celsius.to.fahrenheit: 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.

See Also

fahrenheit.to.celsius

Examples

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

Run the code above in your browser using DataLab