« back

R Packages

This is a list of R packages related to or affiliated with Wikimedia Foundation, some authored by me and some authored by my former co-analyst Oliver Keyes.

Wikimedia API wrappers

pageviews
For Pageviews API from entire projects to per-article levels of granularity | Available on CRAN
WikipediR
For the MediaWiki API, aimed particularly at WMF projects like Wikipedia and can be used to retrieve page text, information about users or the history of pages, and elements of the category tree | Available on CRAN
WikidataR
For the Wikidata store of semantic data | Available on CRAN
WikidataQueryServiceR
For querying Wikidata with SPARQL using Wikidata Query Service | Available on CRAN

Miscellaneous

wikipediatrend
Uses stats.grok.se API, which has historical Wikipedia pageview data for 2008 up to 2016 from these pageview count dumps, while pageviews uses the Pageviews API for counts from 2015 onwards
maltese
Little R utility package for making time series data more machine learning-friendly | Available on GitHub
BCDA
Bayesian analysis of 2×2 contingency tables | Available on GitHub