docx_describe_tbls: Returns a description of all the tables in the Word document

Description Usage Arguments Examples

View source: R/describe.r

Description

This function will attempt to discern the structure of each of the tables in docx and print this information

Usage

1

Arguments

docx

docx object read with read_docx

Examples

1
2
3
complx <- read_docx(system.file("examples/complex.docx", package="docxtractr"))
docx_tbl_count(complx)
docx_describe_tbls(complx)

Example output

[1] 5
Word document [/usr/local/lib/R/site-library/docxtractr/examples/complex.docx]

Table 1
  total cells: 16
  row count  : 4
  uniform    : likely!
  has header : likely! => possibly [This, Is, A, Column]

Table 2
  total cells: 12
  row count  : 4
  uniform    : likely!
  has header : likely! => possibly [Foo, Bar, Baz]

Table 3
  total cells: 14
  row count  : 7
  uniform    : likely!
  has header : likely! => possibly [Foo, Bar]

Table 4
  total cells: 11
  row count  : 4
  uniform    : unlikely => found differing cell counts (3, 2) across some rows
  has header : likely! => possibly [Foo, Bar, Baz]

Table 5
  total cells: 21
  row count  : 7
  uniform    : likely!
  has header : unlikely

docxtractr documentation built on July 8, 2020, 6:23 p.m.