as.DGVMUnit: Creates a DGVMUnit object from a unit string.

Description Usage Arguments Value Examples

Description

Creates a DGVMUnit object from a unit string.

Usage

1

Arguments

x

A string or a vector of strings parsable as units.

Value

An DGVMUnit object.

Examples

1
2
3
x <- as.DGVMUnit("kW h m-2")
units <- c("m2 s", "m2/s", "m^2*s", "C d")
x <- as.DGVMUnit(units)

joergsteinkamp/DGVMUnits documentation built on May 25, 2019, 6:24 p.m.