Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

ad_ts does not work with data.table #113

Open
fedemolina opened this issue May 5, 2020 · 0 comments
Open

ad_ts does not work with data.table #113

fedemolina opened this issue May 5, 2020 · 0 comments

Comments

@fedemolina
Copy link

fedemolina commented May 5, 2020

I'm using a data set with different time series, I'm store it as data.table
So in every iteration I filter by some condition:

DT[var1 == x, c("date", "var2")]

Error in rbindlist(l, use.names, fill, idcol) :
Class attribute on column 1 of item 2 does not match with column 1 of item 1.

This happen because date column is store as numeric(0), ie:

all_anoms <- data.frame(timestamp = numeric(0), count = numeric(0)) meanwhile column date is required to be POSIXct/POSIXlt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant