AnomalyDetection icon indicating copy to clipboard operation
AnomalyDetection copied to clipboard

consistent output for AnomalyDetectionTs()

Open Mullefa opened this issue 10 years ago • 4 comments

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?

Mullefa avatar Apr 28 '15 15:04 Mullefa

@akejariwal do you think this is necessary? If so, I am happy to jump in and help make the changes.

terrytangyuan avatar Aug 01 '15 10:08 terrytangyuan

@terrytangyuan It's not core to the package. Having said that, I encourage you to submit a patch.

akejariwal avatar Aug 03 '15 21:08 akejariwal

A bit of context: consistent output facilitates building shiny applications, and I can imagine this package being used in conjunction with shiny.

Mullefa avatar Aug 03 '15 21:08 Mullefa

Could anyone close this? Thanks.

terrytangyuan avatar Feb 13 '16 19:02 terrytangyuan