get_books: get_books - Get an entire book or several books in book_list

Description Usage Arguments Value Examples

View source: R/get_text.R

Description

A wrapper around get_text that downloads an entire book or books. Different from get_chapters in that it directly downloads all chapters of specified books.

Usage

1

Arguments

book

name or vector of book names

Value

Returns a dataframe with 4 columns: text, book, chapter in English, & chapter in Chinese. In the case that the connection experiences a problem or you meet your daily API imit, an NA value will be returned in the "text" column.

Examples

1
2
3
4
5
get_books("analects")
get_books("dao-de-jing")
On average you can download around 3 books before hitting the API limit.
my_booklist <- c("analects", "mengzi", "zhuangzi")
my_books <- get_books(my_booklist)

Jjohn987/ctextclassics documentation built on May 20, 2019, 3:05 p.m.