Save Dataframe to Excel Workbook

sbf_save_excel(
  x,
  x_name = substitute(x),
  max_sheets = 1L,
  sub = sbf_get_sub(),
  main = sbf_get_main(),
  epgs = NULL
)

Arguments

x

The data frame to save.

x_name

A string of the name.

max_sheets

An integer specifying the maximum number of sheets to split your table into for writing to excel. The default is 1.

sub

A string specifying the path to the sub folder (by default the current sub folder).

main

A string specifying the path to the main folder (by default the current main folder)

epgs

The projection to convert to

Value

An invisible string of the path to the saved data.frame

Details

This takes a data frame and saves it to their own excel workbook.

This function will split up large dataframes into smaller tables for writing to excel because excel only allows a maximum number of 1,048,576. For the max_sheets argument you can pass a number higher then the required and it will only return as many sheets as there is data.

Examples

if (FALSE) { # \dontrun{
sbf_save_excel()
} # }