wikipediatrend: Public Subject Attention via Wikipedia Page View Statistics

Share:

Public attention is an interesting field of study. The internet not only allows to access information in no time on virtually any subject but via page access statistics gathered by website authors the subject of attention as well can be studied. For the omnipresent Wikipedia those access statistics are made available via 'http://stats.grok.se' a server providing the information as file dumps as well as as web API. This package provides an easy to use, consistent and traffic minimizing approach to make those data accessible within R.

Author
Peter Meissner [aut, cre], R Core Team [ctb]
Date of publication
2016-03-20 16:40:50
Maintainer
Peter Meissner <retep.meissner@gmail.com>
License
GPL (>= 2)
Version
1.1.10

View on CRAN

Man pages

html
function downloading content
html2
function downloading content
prev_month_end
function to get date of end of prev month
prev_month_start
function to get date of start of prev month
print.wp_df
a wikipediastrend specific data frame
read_utf8_csv
function to read csv file with UTF-8 characters (even under...
toUTF8
function to convert character vectors to UTF-8 encoding
wp_add_to_cache
function adding downloaded data to the cache
wp_cache
a cache for downloads
wp_cache_default
function for building default cache file name
wp_cache_file
function for determining where downloaded information can be...
wp_cache_load
function for loading cache on disk into memory
wp_cache_reset
function for resetting cache/cachefile as if package was just...
wp_check_date_inputs
Helper function for 'wp_trend()'
wp_date
Package specific 'as.Date()' function
wp_day
Function to extract the day
wp_download_data
function downloading prepared URLs
wp_expand_ts
Helper function for wp_trend that transforms a time span into...
wp_get_cache
function to get cache content
wp_get_data
function for getting data (download + extraction)
wp_http_header
function for pasting together the HTTP user-agent field
wp_jsons_to_df
Helper function for wp_trend
wp_linked_pages
function looking for other languages of a page
wp_load
Helper function for wp_trend that loads previous saved...
wp_month
Function to extract the month
wp_prepare_urls
function preparing URLs for downlaod
wp_save
Helper function for wp_trend
wp_save_cache
functio to save cache to file
wp_set_cache_file
function to set a different cachefile as session default
wp_set_print_options
function for setting print options for print.wp_df()
wp_trend
Function for getting access statistics for wikipedia pages
wp_wday
Function to extract the day of the week
wp_year
Function to extract the year
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...

Files in this package

wikipediatrend
wikipediatrend/inst
wikipediatrend/inst/extdata
wikipediatrend/inst/extdata/wikipediatrend_cache.csv
wikipediatrend/inst/extdata/json
wikipediatrend/inst/extdata/json/de
wikipediatrend/inst/extdata/json/de/201601
wikipediatrend/inst/extdata/json/de/201601/peter
wikipediatrend/inst/doc
wikipediatrend/inst/doc/using-wikipediatrend.R
wikipediatrend/inst/doc/using-wikipediatrend.html
wikipediatrend/inst/doc/using-wikipediatrend.Rmd
wikipediatrend/tests
wikipediatrend/tests/testthat.R
wikipediatrend/tests/testthat
wikipediatrend/tests/testthat/test.csv
wikipediatrend/tests/testthat/extdata
wikipediatrend/tests/testthat/extdata/wikipediatrend_cache.csv
wikipediatrend/tests/testthat/test_caching_gathering.R
wikipediatrend/tests/testthat/test_date_functions.R
wikipediatrend/tests/testthat/test_data_gathering.R
wikipediatrend/NAMESPACE
wikipediatrend/NEWS
wikipediatrend/R
wikipediatrend/R/wp_trend.R
wikipediatrend/R/wp_get_data.R
wikipediatrend/R/wp_linked_pages.R
wikipediatrend/R/wp_load_and_save.r
wikipediatrend/R/wp_date_functions.r
wikipediatrend/R/wp_cache.R
wikipediatrend/R/wp_prepare_urls.R
wikipediatrend/R/wp_last_month.R
wikipediatrend/R/html.R
wikipediatrend/R/wp_df.R
wikipediatrend/R/wp_http_header.R
wikipediatrend/R/wp_check_date_inputs.R
wikipediatrend/R/wp_jsons_to_df.R
wikipediatrend/R/wp_download_data.R
wikipediatrend/R/zzz.R
wikipediatrend/R/wp_expand_ts.R
wikipediatrend/vignettes
wikipediatrend/vignettes/using-wikipediatrend.Rmd
wikipediatrend/README.md
wikipediatrend/MD5
wikipediatrend/build
wikipediatrend/build/vignette.rds
wikipediatrend/DESCRIPTION
wikipediatrend/man
wikipediatrend/man/wp_get_cache.Rd
wikipediatrend/man/wp_cache_default.Rd
wikipediatrend/man/wp_trend.Rd
wikipediatrend/man/write_utf8_csv.Rd
wikipediatrend/man/wp_get_data.Rd
wikipediatrend/man/wp_save_cache.Rd
wikipediatrend/man/wp_month.Rd
wikipediatrend/man/wp_set_print_options.Rd
wikipediatrend/man/wp_prepare_urls.Rd
wikipediatrend/man/wp_linked_pages.Rd
wikipediatrend/man/wp_wday.Rd
wikipediatrend/man/wp_day.Rd
wikipediatrend/man/wp_check_date_inputs.Rd
wikipediatrend/man/html2.Rd
wikipediatrend/man/wp_cache_reset.Rd
wikipediatrend/man/print.wp_df.Rd
wikipediatrend/man/wp_save.Rd
wikipediatrend/man/wp_cache_load.Rd
wikipediatrend/man/wp_jsons_to_df.Rd
wikipediatrend/man/wp_cache_file.Rd
wikipediatrend/man/wp_download_data.Rd
wikipediatrend/man/wp_set_cache_file.Rd
wikipediatrend/man/wp_http_header.Rd
wikipediatrend/man/toUTF8.Rd
wikipediatrend/man/prev_month_end.Rd
wikipediatrend/man/wp_year.Rd
wikipediatrend/man/wp_add_to_cache.Rd
wikipediatrend/man/read_utf8_csv.Rd
wikipediatrend/man/wp_date.Rd
wikipediatrend/man/wp_cache.Rd
wikipediatrend/man/prev_month_start.Rd
wikipediatrend/man/html.Rd
wikipediatrend/man/wp_load.Rd
wikipediatrend/man/wp_expand_ts.Rd
wikipediatrend/man/wp_yearmonth.Rd