Sift out EPUB sections that have suspiciously low word or character count.
a data frame created by
integer, minimum number of words or characters to retain a section.
This function is like a sieve that lets small section rows fall through. Choose the minimum number of words or characters to accept as a meaningful section in the e-book worth retaining in the nested data frame, e.g., book chapters. Data frame rows pertaining to smaller sections are dropped.
This function is helpful for isolating meaningful content by removing extraneous e-book sections that may be difficult to remove by other methods when working with poorly formatted e-books.
The EPUB file included in
epubr is a good example of this. It does not contain meaningful section identifiers in its metadata.
This creates a need to restructure the text table after reading it with
epub by subsequently calling
However, some unavoidable ambiguity in this leads to many small sections appearing from the table of contents.
These can then be dropped with
epub_sift. See a more comprehensive in the
A simpler example is shown below.
a data frame
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.