One can use either dplyr filter verb or subseting records with base "[" to manually define anomalies
Then as.anomalies
can be used to create anomalies object to be used for instance for visualisation purpose.
as.anomalies(x)
stranger/singular (pre-filered) object
object of class anomalies -- see also get_anomalies
.
Note that it is expected from the user to filter the object. If not done, all records are defined as anomalies. This manual approach can be useful with some metrics and litterature recommandation, for instance using a cutpoint of 2 for 'abod' method.