gpluck_extract_tables | R Documentation |
This function returns the tables in a PDF file as parsed by the tabulapdf package.
gpluck_extract_tables(
file,
pages = NULL,
area = NULL,
guess = FALSE,
method = c("decide", "lattice", "stream"),
output = c("matrix", "data.frame", "character", "asis", "csv", "tsv", "json"),
...
)
file |
The path to the PDF file. |
pages |
A single page number or vector of page numbers, Default: NULL |
area |
An area on the page given as c(x0, y0, x1, y1). Default: NULL |
guess |
Whether to attempt to detect tables when the coordinates are not given. Default: FALSE |
method |
Method to use for parsing. Default: c("decide", "lattice", "stream") |
output |
Output format (see |
... |
Other arguments to |
This is a wrapper around the extract_tables
function that allows for easier access to the tables in a PDF document.
A parsed table in either matrix, data frame, character, asis, csv, tsv or json format.
extract_tables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.