convert_temperature: Converts units of temperature data

View source: R/units.R

convert_temperatureR Documentation

Converts units of temperature data

Description

Converts units of temperature data

Usage

convert_temperature(x, unit_from, unit_to = "C")

Arguments

x

A numeric object. Temperature data in units of unit_from.

unit_from

A character string. Units of data in x. Currently, supported units include "K", "F", and "C".

unit_to

A character string. Units to which data are converted. Currently, supported unit is "C".

Value

A numeric object of the same size as x in units of unit_to.


DrylandEcology/rSW2utils documentation built on Dec. 9, 2023, 10:44 p.m.