docx_summary | R Documentation |
read content of a Word document and return a data.frame representing the document.
docx_summary(x, preserve = FALSE, remove_fields = FALSE, detailed = FALSE)
x |
an rdocx object |
preserve |
If |
remove_fields |
if TRUE, prevent field codes from appearing in the returned data.frame. |
detailed |
Should information on runs be included in summary dataframe?
Defaults to |
Documents included with body_add_docx()
will
not be accessible in the results.
example_docx <- system.file(
package = "officer",
"doc_examples/example.docx"
)
doc <- read_docx(example_docx)
docx_summary(doc)
docx_summary(doc, preserve = TRUE)[28, ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.