convert: Unit conversion

Description Usage Arguments Value Examples

View source: R/convert.R

Description

Unit conversion

Usage

1
convert(number, from, to)

Arguments

number

A numeric

from

The standard symbol for the unit being converted from

to

The standard symbol for the unit being converted to

Value

A numeric in the units specified in to

Examples

1
2
convert(24, 'd', 'h')
convert(1:20, 'lb', 'kg')

colin-fraser/convertR documentation built on May 13, 2019, 9:54 p.m.