Closed bdavis19 closed 1 year ago
anom <- usage %>% group_by(date_only) %>% arrange(date_only) %>% summarize(total = sum(amount)) %>% as_tibble() anom_only <- anom %>% time_decompose(total) %>% anomalize(remainder) %>% time_recompose() %>% filter(anomaly == 'Yes')
This code works as intended on my Mac. However, when it's moved to a Windows server I get the following error:
Error in value[3L] : Error in prep_tbl_time(): No date or datetime column found.
Any ideas what could be the cause? The date_only variable is, indeed, a Date.
anom <- usage %>% group_by(date_only) %>% arrange(date_only) %>% summarize(total = sum(amount)) %>% as_tibble() anom_only <- anom %>% time_decompose(total) %>% anomalize(remainder) %>% time_recompose() %>% filter(anomaly == 'Yes')
This code works as intended on my Mac. However, when it's moved to a Windows server I get the following error:
Any ideas what could be the cause? The date_only variable is, indeed, a Date.