epub_head | R Documentation |
Preview the first n characters of each EPUB e-book section.
epub_head(x, n = 50)
x |
a data frame returned by |
n |
integer, first n characters to retain from each e-book section. |
This function returns a simplified data frame of only the unnested section
and text
columns of a data frame returned by epub
, with the text included only up to the first n
characters.
This is useful for previewing the opening text of each e-book section to inspect for possible useful regular expression patterns to use for text-based section identification.
For example, an e-book may not have meaningful section IDs that distinguish one type of book section from another, such as chapters from non-chapter sections,
but the text itself may contain this information at or near the start of a section.
a data frame.
epub_cat
file <- system.file("dracula.epub", package = "epubr")
epub_head(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.