View source: R/creature_text.R
creature_text | R Documentation |
Accepts user-provided Dungeons & Dragons creature name(s) and returns the full set of fifth edition creature information and the complete description text (for the 2014 version). Unlike 'dndR::creature_list', this function requires an exact match between the user-provided creature name(s) and how they appear in the main creature data object. The argument in this function is not case-sensitive.
creature_text(name = NULL, ver = "2014")
name |
(character) exact creature name(s) for which to gather description information |
ver |
(character) which version of fifth edition to use ("2014" or "2024"). Note that only 2014 is supported and entering "2024" will print a warning to that effect |
(dataframe) one column per creature specified by the user. Creature name is stored as the column name for that creature's information. Returns all fields for which there are data for at least one of the specified creatures so row number will vary with query (maximum 26 rows if all fields have information).
dndR::creature_text(name = c("hill giant", "goblin"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.