consistent output for AnomalyDetectionTs()
If there are no anomalies detected then list(anoms = NULL, plot = NULL) is returned. Does this special case need to be made? Instead could a data frame (with 0 rows) and a plot (if plot = TRUE) still be returned for consistency?
@akejariwal do you think this is necessary? If so, I am happy to jump in and help make the changes.
@terrytangyuan It's not core to the package. Having said that, I encourage you to submit a patch.
A bit of context: consistent output facilitates building shiny applications, and I can imagine this package being used in conjunction with shiny.
Could anyone close this? Thanks.