Description Usage Arguments Value Examples
Detach the index of a zoo
object to be seperated values of
year/month/day/hour/minute/second, and return a data frame containing
these columns.
1 2 3 4 | index_detach(x, ...)
## S3 method for class 'zoo'
index_detach(x, nfield = 2, ...)
|
x |
a object. |
... |
further arguments. |
nfield |
numeric. Number of fields of time to retain. |
a data frame.
1 2 3 4 5 6 7 | x.Date <- as.Date("2003-02-01") + c(1, 3, 7, 9, 14) - 1
x <- zoo(rnorm(5), x.Date)
index_detach(x, 3)
y.POSIXct <- ISOdatetime(2003, 02, c(1, 3, 7, 9, 14), 0, 0, 0)
y <- zoo(rnorm(5), y.POSIXct)
index_detach(y, 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.