Open sonnylaskar opened 7 years ago
I got into same error. The problem is in the missing sec
in period calculation
period = switch(gran,
min = 1440,
hr = 24,
# if the data is daily, then we need to bump the period to weekly to get multiple examples
day = 7)
Thanks @mvadu for your reply. So what should I do to resolve this issue? I tried both POSIXlt and POSIXct classes for the timestamp. Please assist.
I got into same error...
my dataset is: timestamp count 1 2018-08-10 10:00:00 36936541213 2 2018-08-10 10:05:00 36660137371 3 2018-08-10 10:10:00 35549664089 4 2018-08-10 10:15:00 34855280888 5 2018-08-10 10:20:00 35208862183 6 2018-08-10 10:25:00 34907127930 ...
Any help would be appreciated
@Gypsying did you get it working?
The library currently tries to convert the second granularity into minutes, by aggregating it but it does not set the new granularity. Few folks have tried to fix that in their own repos (see the linked PRs above). But I think the right thing to do is to not to touch the actual data set as sum of input numbers might not make sense in all cases (e.g. temperature, speed or stockprice). Right thing is to remove the logic in L164, and add switch condition for sec here with value of 86400.
On the other hand, the timeseries dataset in the OP and above by @nikhiljay do not have the point separated by seconds. So may be we need to check why its deciding to use sec
as granularity.
Hello team,
I started exploring this package and I am struck. I have a data.frame which contains some parameter values captured every 15 minutes , hence 96 records for one day. I have data for 27 days.
I get the below error when I try to run:
I tried longterm = T but didnt help. Please let me know how to solve this.