Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
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.rownamesargument 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.rownamesbut
as.data.table.xts()doesn't and it should, in my opinion