Learn R Programming

bardr (version 0.0.9)

all_works_df: Contents of Complete Works of William Shakespeare (dataframe)

Description

A dataframe containing the full text of all of the complete works of William Shakespeare, as provided by Project Gutenberg.

Usage

all_works_df

Arguments

Format

A data frame with 166340 rows and 4 variables:

name

short (or common) name of the work

content

the full contents of the work. Each line is ~70 characters

full_name

the complete name of the work, as listed

genre

whether the work is poetry, history, comedy, or tragedy

Examples

Run this code
# NOT RUN {
works <- bardr::all_works_df
subset(works, works$genre == "History")
# }

Run the code above in your browser using DataLab