A convenience R package for getting Wikipedia article access statistics (and more).
R
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R codecov Sep 24, 2017
README_files/figure-markdown_github-ascii_identifiers README Sep 24, 2017
blogging README Jan 9, 2016
inst/extdata throw out vignette Sep 23, 2017
man passing checks Sep 24, 2017
tests codecov Sep 24, 2017
.Rbuildignore passing checks Sep 24, 2017
.gitattributes trying to fix linguist languge statistics Mar 4, 2018
.gitignore dings Aug 2, 2016
.travis.yml codecov Sep 24, 2017
DESCRIPTION README Sep 24, 2017
NAMESPACE overhaul for version 2.0.0 Sep 24, 2017
NEWS CRAN compliance Sep 23, 2017
README.Rmd codecov Sep 24, 2017
README.md codecov Sep 24, 2017
appveyor.yml testing May 20, 2015
autotest.Rexec testing May 20, 2015
cran-comments.md CRAN release Sep 23, 2017

README.md

Public Subject Attention via Wikipedia Page View Statistics

Status

Codecov

lines of R code: 316, lines of test code: 158

Version

2.0.1.900000 ( 2017-09-24 21:41:52 )

Description

License

GPL (>= 2)
Peter Meissner [aut, cre], [ctb]

Credits

  • Parts of the package's code have been shamelessly copied and modified from R base package written by R core team. This concerns the wp_date() generic and its methods and is detailed in the help files.

Citation

citation("wikipediatrend")

Meissner P (2017). wikipediatrend: Public Subject Attention via Wikipedia Page View Statistics. R package version 2.0.1.900000.

BibTex for citing

toBibtex(citation("wikipediatrend"))

Installation

Stable version from CRAN:

install.packages("wikipediatrend")

Latest development version from Github:

devtools::install_github("petermeissner/wikipediatrend")

Usage

starting up ...

library(wikipediatrend)

getting some data ...

trend_data <- 
  wp_trend(
    page = c("Der_Spiegel", "Die_Zeit"), 
    lang = c("de", "en"), 
    from = "2007-01-01",
    to   = "2017-01-01"
  )

having a look ...

trend_data
##      project   language article     access     agent      granularity date       views
## 573  wikipedia de       Der_Spiegel all-access all-agents daily       2015-11-21 3359 
## 1139 wikipedia en       Der_Spiegel all-access all-agents daily       2016-04-10  381 
## 2153 wikipedia de       Der_Spiegel all-access all-agents daily       2016-12-20 1154 
## 627  wikipedia en       Der_Spiegel all-access all-agents daily       2015-12-04  416 
## 2041 wikipedia de       Der_Spiegel all-access all-agents daily       2016-11-22 1011 
## 1415 wikipedia en       Der_Spiegel all-access all-agents daily       2016-06-18  403 
## 1863 wikipedia en       Der_Spiegel all-access all-agents daily       2016-10-08  429 
## 1676 wikipedia en       Die_Zeit    all-access all-agents daily       2016-08-22  179 
## 564  wikipedia en       Die_Zeit    all-access all-agents daily       2015-11-18  284 
## 206  wikipedia de       Die_Zeit    all-access all-agents daily       2015-08-21  565 
## 
## ... 2194 rows of data not shown

having another look ...

plot(trend_data)