unearth_lovecraftian_tales {lovecraftr} | R Documentation |
Retrieve Lovecraftian Tales by Name or abbreviation
Description
Search for and retrieve text from a collection of Lovecraft stories.
Usage
unearth_lovecraftian_tales(book = NULL)
Arguments
book |
A character string representing the full name or abbreviation of the Lovecraft story to search for.
The search is case-insensitive. If |
Value
If a valid book is selected, a data frame with the following columns:
- text
The text of the selected story.
- title
The title of the selected Lovecraft story.
- abbreviation
The abbreviation corresponding to the story.
If no book is specified, the function returns a data frame with two columns:
- story
The name of the available story.
- abbreviation
The corresponding abbreviation for each story.
Examples
# List all available stories
unearth_lovecraftian_tales()
# Retrieve a story by full name (case-insensitive)
unearth_lovecraftian_tales("The shadow over innsmouth")
# Retrieve a story by abbreviation (case-insensitive)
unearth_lovecraftian_tales("soi")
# Retrieve a story with partial name or abbreviation (case-insensitive)
unearth_lovecraftian_tales("call")
# Retrieve a story by abbreviation
unearth_lovecraftian_tales("RH")
[Package lovecraftr version 1.2.0 Index]