create_data_table {rgoogleslides}R Documentation

Create and upload data into a table in slides

Description

This function takes in one single page element property and one dataset at each time for uploading to a single slide

Usage

create_data_table(
  id = NULL,
  page_element_property = NULL,
  data = NULL,
  headers = TRUE
)

Arguments

id

ID of the presentation slide

page_element_property

A list that contains a page element property. The page element is to be generated by the page_element_property function in this package.

data

Dataframe of the dataset that is to be converted so that it can be used with the google slides API

headers

Boolean to indicate whether to convert taking in mind of the headers or not

Examples

## Not run: 
library(googleslides)
authorize()
slide_page <- page_element_property(['slide-id-2'])
create_data_table("presentation-slide-id", slide_page, iris[1:5,])

## End(Not run)

[Package rgoogleslides version 0.3.2 Index]