Learn R Programming

units (version 0.4-1)

units: Convert units

Description

Convert units

Usage

"units"(x) <- value

Arguments

x
object of class units
value
length one character vector with target unit

Examples

Run this code
a <- with(ud_units, 1:3 * m/s)
units(a) <- with(ud_units, km/h)
a

Run the code above in your browser using DataLab