Learn R Programming

googlesheets (version 0.3.0)

gs_ws_delete: Delete a worksheet from a spreadsheet

Description

The worksheet and all of its contents will be removed from the spreadsheet.

Usage

gs_ws_delete(ss, ws = 1, verbose = TRUE)

Arguments

ss

a registered Google spreadsheet, i.e. a googlesheet object

ws

positive integer or character string specifying index or title, respectively, of the worksheet

verbose

logical; do you want informative messages?

Value

a googlesheet object

Examples

Run this code
# NOT RUN {
gap_ss <- gs_copy(gs_gap(), to = "gap_copy")
gs_ws_ls(gap_ss)
gap_ss <- gs_ws_new(gap_ss, "new_stuff")
gap_ss <- gs_edit_cells(gap_ss, "new_stuff", input = head(iris), trim = TRUE)
gap_ss
gap_ss <- gs_ws_delete(gap_ss, "new_stuff")
gs_ws_ls(gap_ss)
gap_ss <- gs_ws_delete(gap_ss, ws = 3)
gs_ws_ls(gap_ss)
gs_delete(gap_ss)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab