sheet_delete | R Documentation |
Deletes one or more (work)sheets from a (spread)Sheet.
sheet_delete(ss, sheet)
ss |
Something that identifies a Google Sheet:
Processed through |
sheet |
Sheet to delete, in the sense of "worksheet" or "tab". You can identify a sheet by name, with a string, or by position, with a number. You can pass a vector to delete multiple sheets at once or even a list, if you need to mix names and positions. |
The input ss
, as an instance of sheets_id
Makes an DeleteSheetsRequest
:
Other worksheet functions:
sheet_add()
,
sheet_append()
,
sheet_copy()
,
sheet_properties()
,
sheet_relocate()
,
sheet_rename()
,
sheet_resize()
,
sheet_write()
ss <- gs4_create("delete-sheets-from-me")
sheet_add(ss, c("alpha", "beta", "gamma", "delta"))
# get an overview of the sheets
sheet_properties(ss)
# delete sheets
sheet_delete(ss, 1)
sheet_delete(ss, "gamma")
sheet_delete(ss, list("alpha", 2))
# get an overview of the sheets
sheet_properties(ss)
# clean up
gs4_find("delete-sheets-from-me") %>%
googledrive::drive_trash()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.