fortify
method for anomalies
, stranger
and singular
objects to enrich data. Usually,
this is invoked on source data. For obvious precautions, this is done on an id column
as managed by the typical workflow (crazyfy
). In case you enrich data without any
specific id, it is just assumed to have those data in the same order than data used in
anomaly detection computations -- this behavior may really needs to unwanted results.
# S3 method for anomalies
fortify(x, data = NULL, id = NULL,
colname = "flag_anomaly", ...)# S3 method for stranger
fortify(x, data = NULL, id = NULL, all.x = TRUE,
all.y = FALSE, ...)
# S3 method for singular
fortify(x, data = NULL, id = NULL, all.x = TRUE,
all.y = FALSE, ...)
anomalies objects as generated by a call to get_anomalies
.
data to enrich; if NULL (default), we use the data used during computation
character - name of the column to be created for the flag (default: flag_anomaly).
fortify generic parameter -- not used for stranger objects.
merge parameter
merge parameter