Description Usage Arguments Value Examples
Returns an expression from a DGVMUnit object, which can be used e.g. as axis label.
1 2 | ## S4 method for signature 'DGVMUnit'
as.expression(x, ...)
|
x |
An DGVMUnit object. |
... |
Ignored further arguments. |
an expression
1 2 3 4 5 | x <- as.DGVMUnit("kW h m-2")
as.expression(x)
units <- c("m2 s", "m2/s", "m^2*s", "C d")
x <- as.DGVMUnit(units)
sapply(x, as.expression)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.