u: Unit create function

Description Usage Arguments Value Examples

View source: R/Units.R

Description

Creates a class with specified unit

Usage

1
u(x, unit)

Arguments

x

A quantity to use as physical meaning value

unit

Valid unit name

Value

Object of class "physical"

Examples

1
2
3
4
 z1 <- u(1:5, "km")
 print(z1)
 z2 <- u(list(1, 2), "kg")
 print(z2)

R-kicker/unitconv documentation built on Feb. 12, 2021, 12:33 a.m.