add_ws_data: Add worksheet data

View source: R/files_prep.R

add_ws_dataR Documentation

Add worksheet data

Description

Adds a budget-dataframe to a sheet of an openxlsx Excel workbook, and formats sheet for output

Usage

add_ws_data(budget_wb, df, sheetname, .newwb = F)

Arguments

budget_wb

An openxlsx Excel workbook

df

Budget dataframe to add to workbook

sheetname

Name of sheet to add budget dataframe to as string

.newwb

Whether to return the budget workbook at the end of the function; defaults F, just modifying the existing workbook but returning nothing

Value

Function doesn't return anything unless .newwb = T, but adds a worksheet to an existing openxlsx workbook with formatted data


dpowerstp/tpbudget documentation built on June 3, 2022, 1:41 a.m.