units: units.numeric

Description Usage Arguments Value Examples

Description

Get or set the "units" attribute of a numeric vector. If set, implicitly promotes the vector to class "quantity".

Usage

1
2
	units.numeric(x)
	units.numeric(x) <- value

Arguments

x

vector deriving from class "numeric"

value

character string

Value

vector of class "quantity" with attribute "units" set to value

Examples

1
2
3
4
5
	x <- seq(0, 360, by=30)
	units(x) <- "degrees"
	x
	units(x) <- "radians"
	x

holstius/aermod documentation built on May 17, 2019, 4:39 p.m.