Skip to content

Instantly share code, notes, and snippets.

@ronnyli
ronnyli / wikipedia_article_sampler.R
Last active December 15, 2016 04:51
Wikipedia Article Sampler
#######################
# Randomly select N_RAND Wikipedia articles that are up to 3 links away from
# a root article, in this case "Educational Technology"
#
# The purpose is to discover topics you may be interested in
# (because they are all linked to a root article that you provide)
# that might never cross your path under normal circumstances
#######################
library(magrittr)
library(data.table)