save_to_excel: Save a file to Excel

Description Usage Arguments Details Value Author(s) Examples

View source: R/utils.R

Description

Save a tibble/data.frame to an excel .xlsx file. The file will automatically with a save_dtime in the format of 20201109_132416 for November 11th, 2020 at 1:24:16PM.

Usage

1
save_to_excel(.data, .file_name)

Arguments

.data

The tibble/data.frame that you want to save as an .xlsx file.

.file_name

the name you want to give to the file.

Details

Value

A saved excel file

Author(s)

Steven P. Sanderson II, MPH

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
coded_consults_query(.resp_pty = "013789") %>%
  save_to_excel(.file_name = "coded_consults")

coded_consults_query(.resp_pty = "013789") %>%
  coded_consults_top_providers_tbl(
  .top_n = 10
  , .attending_col = attending_md
  , .consultant_col = consultant
  ) %>%
  save_to_excel(.file_name = "coded_consults")

## End(Not run)

spsanderson/LICHospitalR documentation built on Jan. 6, 2022, 12:32 a.m.