janeaustenr v0.1.5

0

Monthly downloads

0th

Percentile

Jane Austen's Complete Novels

Full texts for Jane Austen's 6 completed novels, ready for text analysis. These novels are "Sense and Sensibility", "Pride and Prejudice", "Mansfield Park", "Emma", "Northanger Abbey", and "Persuasion".

Readme

CRAN_Status_Badge Build Status DOI

janeaustenr

An R Package for Jane Austen's Complete Novels

“The person, be it gentleman or lady, who has not pleasure in a good novel, must be intolerably stupid.”

(from Mr. Tilney in Northanger Abbey)

This package provides access to the full texts of Jane Austen's 6 completed, published novels. The UTF-8 plain text for each novel was sourced from Project Gutenberg, processed a bit, and is ready for text analysis. Each text is in a character vector with elements of about 70 characters. The package contains:

  • sensesensibility: Sense and Sensibility, published in 1811
  • prideprejudice: Pride and Prejudice, published in 1813
  • mansfieldpark: Mansfield Park, published in 1814
  • emma: Emma, published in 1815
  • northangerabbey: Northanger Abbey, published posthumously in 1818
  • persuasion: Persuasion, also published posthumously in 1818

There is also a function austen_books() that returns a tidy data frame of all 6 novels.

Users should be aware that there are some differences in usage between the novels as made available by Project Gutenberg. For example, "anything" vs. "any thing", "Mr" vs. "Mr.", and using underscores vs. all caps to indicate italics/emphasis.

Installation

To install the package type the following:

install.packages("janeaustenr")
library(janeaustenr)

Or you can install the development version from Github:

library(devtools)
install_github("juliasilge/janeaustenr")
library(janeaustenr)

How to Use This Package

For some ideas on getting started with analyzing these texts, see my blog post on sentiment analysis of Austen's novels. For help within R, try ?persuasion or similar for getting started with the data sets.

This project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Functions in janeaustenr

Name Description
northangerabbey The text of Jane Austen's novel "Northanger Abbey"
persuasion The text of Jane Austen's novel "Persuasion"
janeaustenr Jane Austen's Complete Novels
mansfieldpark The text of Jane Austen's novel "Mansfield Park"
austen_books Tidy data frame of Jane Austen's 6 completed, published novels
emma The text of Jane Austen's novel "Emma"
prideprejudice The text of Jane Austen's novel "Pride and Prejudice"
sensesensibility The text of Jane Austen's novel "Sense and Sensibility"
No Results!

Last month downloads

Details

URL https://github.com/juliasilge/janeaustenr
BugReports https://github.com/juliasilge/janeaustenr/issues
License MIT + file LICENSE
LazyData true
RoxygenNote 6.0.1
Encoding UTF-8
NeedsCompilation no
Packaged 2017-06-09 16:56:07 UTC; juliasilge
Repository CRAN
Date/Publication 2017-06-10 06:29:05 UTC
suggests dplyr , testthat
depends R (>= 3.1.2)
Contributors

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/janeaustenr)](http://www.rdocumentation.org/packages/janeaustenr)