as.data.table.xts

0th

Percentile

Efficient xts to as.data.table conversion

Efficient conversion xts to data.table.

Usage
# S3 method for xts
as.data.table(x, keep.rownames = TRUE, ...)
Arguments
x

xts to convert to data.table

keep.rownames

keep xts index as index column in result data.table

ignored, just for consistency with as.data.table

See Also

as.xts.data.table

Aliases
  • as.data.table.xts
Examples
# NOT RUN {
data(sample_matrix, package = "xts")
sample.xts <- xts::as.xts(sample_matrix) # xts might not be attached on search path
# print head of xts
print(head(sample.xts))
# print dt
print(as.data.table(sample.xts))
# }
Documentation reproduced from package data.table, version 1.10.4-1, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.