Learn R Programming

ores (version 0.3.2)

check_goodfaith: Check Good-Faith Probability

Description

check_goodfaith identifies whether or not an edit was made in 'good faith' - whether it was well-intentioned, even if it is not a high-quality contribution.

Usage

check_goodfaith(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 made in good faith, 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_quality to see a prediction of the article quality class, and check_damaging to check if a set of edits were damaging.

Examples

Run this code
# NOT RUN {
# A simple, single-diff example
goodfaith_data <- check_goodfaith("enwiki", 34854345)

# }

Run the code above in your browser using DataLab