a one-row dribble, which is how googledrive represents Drive files
an instance of googlesheets4_spreadsheet, which is what gs4_get()
returns
Processed through as_sheets_id().
sheet: Sheet to resize, in the sense of "worksheet" or "tab". You can identify a sheet by name, with a string, or by position, with a number.
nrow, ncol: Desired number of rows or columns, respectively. The default of NULL means to leave unchanged.
exact: Logical, indicating whether to impose nrow and ncol exactly or to treat them as lower bounds. If exact = FALSE, sheet_resize() can only add cells. If exact = TRUE, cells can be deleted and their contents are lost.
Returns
The input ss, as an instance of sheets_id
Examples
# create a Sheet with the default initial worksheet(ss <- gs4_create("sheet-resize-demo"))# see (work)sheet dimssheet_properties(ss)# no resize occurssheet_resize(ss, nrow =2, ncol =6)# reduce sheet sizesheet_resize(ss, nrow =5, ncol =7, exact =TRUE)# add rowssheet_resize(ss, nrow =7)# add columnssheet_resize(ss, ncol =10)# add rows and columnssheet_resize(ss, nrow =9, ncol =12)# re-inspect (work)sheet dimssheet_properties(ss)# clean upgs4_find("sheet-resize-demo")%>% googledrive::drive_trash()