knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

An R Package for J.K. Rowling's Harry Potter Series

This package provides access to the full texts of the first seven Harry Potter books. The UTF-8 plain text for each novel was sourced from Read Vampire Books, processed a bit, and is ready for text analysis. Each text is in a character vector with each element representing a single chapter. The package contains:

Installation

You can install harrypotter from GitHub:

if (packageVersion("devtools") < 1.6) {
  install.packages("devtools")
}

devtools::install_github("bradleyboehmke/harrypotter")


bradleyboehmke/harrypotter documentation built on May 13, 2019, 2:27 a.m.