Description Usage Arguments Value See Also Examples
Extract all tables from a Word document
1 | docx_extract_all(docx, guess_header = TRUE, preserve = FALSE, trim = TRUE)
|
docx |
|
guess_header |
should the function make a guess as to the existence of
a header in a table? (Default: |
preserve |
preserve line breaks within a cell? Default: 'FALSE'. NOTE: This overrides 'trim'. |
trim |
trim leading/trailing whitespace (if any) in cells? (default: |
list
of data.frame
s or an empty list
if no
tables exist in docx
assign_colnames
, docx_extract_tbl
1 2 3 4 5 6 7 | # a "real" Word doc
real_world <- read_docx(system.file("examples/realworld.docx", package="docxtractr"))
docx_tbl_count(real_world)
# get all the tables
tbls <- docx_extract_all_tbls(real_world)
|
[1] 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.