Add data frame to Slides
Usage
# S3 method for class 'data.frame'
add_to_slides(
  object,
  presentation_id,
  on = NULL,
  object_id = new_id("table"),
  overwrite = FALSE,
  digits = NULL,
  ...
)Arguments
- object
- A data.frame 
- presentation_id
- The id from the Slides presentation 
- on
- The id or number of the slide to add to 
- object_id
- A unique id for the table 
- overwrite
- If TRUE and an object with - object_idexists it will deleted and replaced.
- digits
- the minimum number of significant digits, see format. If - NULL- getOption("digits")is used.
- ...
- Not used in this method 
Details
The data frame is added as a table with the column names in bold as the first row.
For other formatting use the flextable package and add_to_slides.flextable.
Examples
if (FALSE) { # interactive()
# \donttest{
s <- choose_slides()
obj <- iris[1:5, ]
add_to_slides(obj, s, on = 1)
# }
}