ft_table | R Documentation |
Facilitates downstream processing with text mining packages by providing metadata and full text in a tidy data.frame format
ft_table(path = NULL, type = NULL, encoding = NULL, xml_extract_text = TRUE)
path |
a directory path, must exist |
type |
(character) type of files to get. Default is |
encoding |
(character) encoding, if |
xml_extract_text |
(logical) for XML, should we extract the text ( |
You can alternatively use readtext::readtext()
or similar functions
to achieve a similar outcome.
## Not run: if (interactive()) { ## from a directory path x <- ft_table() x ## only xml ft_table(type = "xml") ## only pdf ft_table(type = "pdf") ## don't pull text out of xml, just give back the xml please x <- ft_table(xml_extract_text = FALSE) x } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.