| as.data.table.xts | R Documentation |
Convert an xts object into a data.table
## S3 method for class 'xts'
as.data.table(x)
as.data.table(x)
## Default S3 method:
as.data.table(x, ...)
x |
An xts object |
... |
Catch-all arguments passed on to methods |
This is still experimental. Note that all four added
columns are keys to the data.table object, and that
setNumericRounding(0) is executed too,
A data.table object with new columns date, time, micros,
pt providing, respectively the data as IDate, time as
ITime, microseconds (rounded) and numeric
POSIXct.
Dirk Eddelbuettel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.