mUnits | R Documentation |
This function control metric units.
mUnits(x, from = "mm", to = "mm")
x |
|
from |
|
to |
|
Characters in from
and to
arguments have the form 'p_', where 'p' is the
metric prefix and '_' is a base unit. Sixteen
metric prefixes are supported: atto 'a', femto
'f', pico 'p', nano 'n', micro 'mm', mili 'm',
centi 'c', deci 'd', deca 'da', hecto 'h', kilo
'k', mega 'M', giga 'G', tera 'T', peta 'P', and
exa 'E'.
numeric
vector.
Wilson Lara <wilarhen@gmail.com>, Felipe Bravo <fbravo@pvs.uva.es>
## Simulation of TRW data set.seed(1) w <- abs(rnorm(12,1,1)) trw <- ts(w,start = 1970) ## transforming metric units of trw vector from milimeters to meters sr <- mUnits(trw, from = 'mm', to = 'm') attributes(sr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.