Description Usage Arguments Examples
Transform a numeric or a common non xts object into an xts object with specified period, starting from the desired year, month, day
1 | xts_transf(x, year = 2018, month = 02, day = 2, hour = 11, minutes = 00, period = 60)
|
x |
a vector, matrix or data.frame object |
year |
starting year |
month |
starting month |
day |
starting day |
hour |
starting hour |
minutes |
starting minutes |
period |
the desired period, 60 indicates a 1 minute interval time, 300 indicates a 5 minutes time frame... |
1 2 3 | # This will create a 5 minutes xts object
x <- rnorm(50)
xts_transf(x, period = 300)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.