Learn R Programming

⚠️There's a newer version (2.1.6) of this package.Take me there.

Public Subject Attention via Wikipedia Page View Statistics

Status

This package does not work at the moment due due a missing data source

lines of R code: 594, lines of test code: 203

Version

1.1.14 ( 2017-09-23 13:46:24 )

Description

License

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

Citation

citation("wikipediatrend")

BibTex for citing

toBibtex(citation("wikipediatrend"))

Installation

Stable version from CRAN:

install.packages("wikipediatrend")

Latest development version from Github:

devtools::install_github("petermeissner/wikipediatrend")

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.

Copy Link

Version

Install

install.packages('wikipediatrend')

Monthly Downloads

47

Version

1.1.14

License

GPL (>= 2)

Maintainer

Peter Meissner

Last Published

September 23rd, 2017

Functions in wikipediatrend (1.1.14)

wp_check_date_inputs

Helper function for wp_trend()
read_utf8_csv

function to read csv file with UTF-8 characters (even under Windwos) that were created by write_U
wp_save_cache

functio to save cache to file
wp_cache_file

function for determining where downloaded information can be stored
wp_cache_default

function for building default cache file name
html

function downloading content
html2

function downloading content
wp_download_data

function downloading prepared URLs
wp_day

Function to extract the day
wp_get_data

function for getting data (download + extraction)
wp_cache_load

function for loading cache on disk into memory
toUTF8

function to convert character vectors to UTF-8 encoding
wp_yearmonth

function for getting year and month of a timestamp
write_utf8_csv

function to write csv files with UTF-8 characters (even under Windows)
wp_wday

Function to extract the day of the week
wp_set_cache_file

function to set a different cachefile as session default
wp_year

Function to extract the year
wp_http_header

function for pasting together the HTTP user-agent field
wp_save

Helper function for wp_trend
wp_prepare_urls

function preparing URLs for download
wp_expand_ts

Helper function for wp_trend that transforms a time span into a series of months
wp_get_cache

function to get cache content
wp_load

Helper function for wp_trend that loads previous saved wp_trend results
wp_month

Function to extract the month
wp_cache_reset

function for resetting cache/cachefile as if package was just loaded
wp_jsons_to_df

Helper function for wp_trend
wp_linked_pages

function looking for other languages of a page
wp_set_print_options

function for setting print options for print.wp_df()
wp_trend

Function for getting access statistics for wikipedia pages
prev_month_start

function to get date of start of prev month
print.wp_df

a wikipediastrend specific data frame
wp_cache

a cache for downloads
wp_add_to_cache

function adding downloaded data to the cache
plot.wp_df

simple plot function for objects of class wp_df
wp_date

Package specific 'as.Date()' function
prev_month_end

function to get date of end of prev month