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