find_chapters: Find chapter breaks in a text

Description Usage Arguments Note Examples

Description

Returns the line index numbers of the titles of each short story or chapter in the a vectorized short story collection or book.

Usage

1
find_chapters(text, keyword)

Arguments

text

Character vector containing all the lines in a given text

keyword

Character string of keywords that identify the title lines of each chapter.

Note

The last element in the output is the line

Examples

1
2
chapters <- c(" and other stories, by Katherine Mansfield : ")
find_chapters(text = gardenParty, keyword = chapters)

Amherst-Statistics/katherinemansfieldr documentation built on May 5, 2019, 4:55 a.m.