View source: R/get_perseus_text.R
get_perseus_text | R Documentation |
Get a primary text by URN.
get_perseus_text(urn, excerpt = NULL)
urn |
Valid uniform resource number (URN) obtained from |
excerpt |
An index to excerpt the text. For example, the first four "verses" of a text might be 1.1-1.4. If NULL, the entire work is returned. |
A seven column tbl_df
with one row for each "section" (splits vary from text–could be line, chapter, etc.).
Columns:
character vector of text
Uniform Resource Number
Could refer to author (e.g. "Aristotle") or corpus (e.g. "New Testament")
Text label, e.g. "Phaedrus"
Text description
Text language, e.g. "grc" = Greek, "lat" = Latin, "eng" = English
Text section or excerpt if specified
get_perseus_text("urn:cts:greekLit:tlg0013.tlg028.perseus-grc2")
get_perseus_text("urn:cts:latinLit:stoa0215b.stoa003.opp-lat1")
get_perseus_text(urn = "urn:cts:greekLit:tlg0031.tlg009.perseus-grc2", excerpt = "5.1-5.5")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.