docx_summary {officer} | R Documentation |
Get Word content in a data.frame
Description
read content of a Word document and return a data.frame representing the document.
Usage
docx_summary(x, preserve = FALSE, remove_fields = FALSE)
Arguments
x |
an rdocx object |
preserve |
If |
remove_fields |
if TRUE, prevent field codes from appearing in the returned data.frame. |
Note
Documents included with body_add_docx()
will
not be accessible in the results.
Examples
example_docx <- system.file(
package = "officer",
"doc_examples/example.docx"
)
doc <- read_docx(example_docx)
docx_summary(doc)
docx_summary(doc, preserve = TRUE)[28, ]
[Package officer version 0.6.6 Index]