[datatable-help] Bug in as.data.table.xts?
Jan Gorecki
j.gorecki at wit.edu.pl
Sun Jan 3 15:11:17 CET 2016
Michael Smith <my.r.help <at> gmail.com> writes:
>
> Potential bug in as.data.table.xts when converting a single-row xts
> object. Using the dev version from GitHub.
>
> library(xts)
> library(data.table)
> x <- as.xts(8, order.by = Sys.Date())
>
> ## Single-row conversion doesn't work.
> as.data.table(x)
Thanks for bug report. Just pushed fix. You can find it here:
https://github.com/Rdatatable/data.table/pull/1485
You can test it by installing "jangorecki/data.table at as.dt.xts.1rowfix"
More information about the datatable-help
mailing list