importSheet | R Documentation |
Imports data from a specified Google Sheets spreadsheet
importSheet(link, email, sheet, range = NULL, col_names = TRUE, ...)
link |
Link to Google Sheets document containing the data. May be a full url or a Google Sheets ID (the string between "../d/" and "/edit..." in the url). |
email |
Email address which has access to the Google Sheets document. |
sheet |
Character string specifying the name of the spreadsheet within the Google Sheets document which contains the desired data. |
range |
Optional. Character string specifying the range to be imported (e.g., 'A1:G100'). |
col_names |
Defaults to TRUE, using the first row in the spreadsheet as the column names. A character vector of custom column names may be passed to this argument. |
... |
Other read_sheet arguments. See ?read_sheet for more. |
Wraps several googlesheets4 functions to import a specified sheet (and range if desired) from a Google Sheets document. Aside from link and email, all googlesheets4::read_sheet() arguments may be passed to importSheet()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.