check_quality: Check Article Class

Description Usage Arguments Value See Also Examples

View source: R/query.R

Description

check_quality identifies the quality class of the article at the moment a particular edit was made.

Usage

1
check_quality(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 nine columns; edit, the edit ID, project, the project, prediction, the class that the model predicts the article has, and then one column each for the probability of the article being in each possible class. 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_damaging to see if a set of edits caused harm.

Examples

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

ores documentation built on Aug. 27, 2020, 9:08 a.m.