temp_convert: Converts temperature

Description Usage Arguments Value Examples

View source: R/temp_convert.R

Description

Convert temperature

Usage

1
temp_convert(tp, to =  c("f2c", "c2f", "f2k", "c2k", "k2c", "k2f"))

Arguments

tp

a vector temperature

to

type to be converted. f2c: Fahrenheit to Celsius; c2f: Celsius to Fahrenheit; f2k: Fahrenheit to Kelvin; k2f: Kelvin to Fahrenheit; c2f: Celsius to Kelvin and k2c: Kelvin to Celsius

Value

a vector temperature

Examples

1
2
dd = data.frame(t = c(23, 24, 25, 25))
temp_convert(dd, "c2f")

salah31416/RLimnology documentation built on July 24, 2019, 10:25 a.m.