I have some data on electricity usage, when I run it on R I get this error
Date Original_Forecast Residual_Forecast Dispatchable_Generat…¹
1 2019-04-01 00:00:00 NA 20127. 21035.
2 2019-04-01 01:00:00 NA 19822. 20548.
3 2019-04-01 02:00:00 NA 19726. 20413.
4 2019-04-01 03:00:00 NA 19939. 20476.
5 2019-04-01 04:00:00 NA 20794. 21156.
6 2019-04-01 05:00:00 NA 22703. 23079.
abbreviated name: ¹Dispatchable_Generation
7 more variables: Residual_Demand , MLR , Installed ,
PCLF , UCLF , OCLF , UCLF_OCLF
res = cosinor(MLR ~ 1, date = Date,
+ data = load_2, type = 'hourly',
+ family = poisson(), offsetmonth = TRUE)
Error in names(data) == date :
comparison (==) is possible only for atomic and list types