lds_scriptures {scriptuRs}R Documentation

Tidy data frame of the LDS scriptures

Description

Returns a tidy data frame of the Standard Works of The Church of Jesus Christ of Latter-day Saints (LDS) (King James Bible, Book of Mormon, Doctrine and Covenants, and the Pearl of Great Price), with one verse for every row. There are several columns, including: text, which contains the text of each verse, book_title, the book of scripture, chapter_number, the chapter, and verse_number, the verse number. There are a dozen other columns as well: see "Details" for complete descriptions.

Usage

lds_scriptures()

Details

Importantly, none of the title columns are ordered factors. It is the responsibility of the user to create ordered factors of book and volume titles when plotting results.

Every row in the dataset is a verse, and there are 19 columns of metadata:

volume_id

Unique id number for the volume (1 = Old Testament, 2 = New Testament, etc.)

book_id

Unique id number for the book (1 = Genesis, 2 = Exodus, etc.)

chapter_id

Unique id number for the chapter (50 = Genesis 50, 51 = Exodus 1, etc.)

verse_id

Unique id number for the verse (31 = Genesis 1:31, 32 = Genesis 2:1)

volume_title

Name of the volume

book_title

Name of the book

volume_long_title

Full name of the volume

book_long_title

Full name of the book

volume_subtitle

Subtitle of the volume

book_subtitle

Subtitle of the book

volume_short_title

Volume abbreviation

book_short_title

Book abbreviation

volume_lds_url

Volume abbreviation used at scriptures.lds.org

book_lds_url

Book abbreviation used at scriptures.lds.org

chapter_number

Chapter (not unique; Genesis 50 = 50, Exodus 1 = 1, etc.)

verse_number

Verse (not unique; Genesis 1:31 = 31, Genesis 2:1 = 1)

text

Scripture text

verse_title

Combined book, chapter, and verse (e.g. Genesis 1:1)

verse_short_title

Abbreviated combined book, chapter, and verse (e.g. Gen. 1:1)

Value

A data frame with 41995 rows and 19 columns

Examples

library(dplyr)

lds_scriptures() %>%
  group_by(volume_title, book_title) %>%
  summarise(total_verses = n())


[Package scriptuRs version 0.1.0 Index]