You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often want to convert an xts object to data.table. I need to keep the index of the xts object. At present, data.table will force to name the column of the index to "index". However, I often need to rename the column to other strings, e.g., "DATE".
So I'm proposing that the keep.rownames argument inas.data.table.xts() should permits a string value as as.data.table.data.frame() does.
If there's no objection, I will file a PR later.
Thanks.
as.data.table.data.frame() permits a string value for keep.rownames
I often want to convert an xts object to data.table. I need to keep the index of the xts object. At present, data.table will force to name the column of the index to "index". However, I often need to rename the column to other strings, e.g., "DATE".
So I'm proposing that the
keep.rownames
argument inas.data.table.xts()
should permits a string value asas.data.table.data.frame()
does.If there's no objection, I will file a PR later.
Thanks.
as.data.table.data.frame()
permits a string value forkeep.rownames
but
as.data.table.xts()
doesn't and it should, in my opinionThe text was updated successfully, but these errors were encountered: