check_damaging: Check Damaging Probability

Description Usage Arguments Value See Also Examples

View source: R/query.R

Description

check_damaging identifies whether or not an edit was damaging - the type that caused actual harm to an article.

Usage

1
check_damaging(project, edits, ...)

Arguments

project

a Wikimedia project. Supported projects can be obtained with list_wikis. If NULL (the default), model information will be retrieved for all projects.

edits

a revision ID, or vector of revision IDs, of the edits to check.

...

further arguments to pass to httr's GET.

Value

A data.frame of five columns; edit, the edit ID, project, the project, prediction, whether the model predicts that the edit was damaging, false_prob, the probability that the model's prediction is wrong, and true_prob, the probability that the model's prediction is correct. In the event of an error (due to the edit not being available) NAs will be returned in that row.

See Also

check_goodfaith to identify if a set of edits were made in good faith, and check_quality to see a prediction of the article quality class.

Examples

1
2
# A simple, single-diff example
damaging_data <- check_damaging("enwiki", 34854345)

Ironholds/ores documentation built on Aug. 30, 2020, 3:16 a.m.