as.matrix.rpptx | R Documentation |
Convert the data in an a 'PowerPoint' table to a matrix or all data to a list of matrices.
## S3 method for class 'rpptx'
as.matrix(
x,
...,
slide_id = NA_integer_,
id = NA_character_,
span = c(NA_character_, "fill")
)
x |
The rpptx object to convert (as created by
|
... |
Ignored |
slide_id |
The slide number to load from (NA indicates first slide with a table, NULL indicates all slides and all tables) |
id |
The table ID to load from (ignored it |
span |
How should col_span/row_span values be handled? |
A matrix with the data, or if slide_id=NULL
, a list of
matrices
library(officer)
pptx_file <- system.file(package="officer", "doc_examples", "example.pptx")
z <- read_pptx(pptx_file)
as.matrix(z, slide_id = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.