add_to_wb: Faster export with openxlsx

View source: R/io.R

add_to_wbR Documentation

Faster export with openxlsx

Description

This is a wrapper around addWorksheet and writeData to allow less typing. It export one object per sheet, the sheet will be created accordingly to the name given

Usage

add_to_wb(wb = NULL, sheet = NULL, x = NULL, ...)

Arguments

wb

a Workbook object

sheet

name of the sheet to be created

x

object to be exported

...

further arguments passed to writeData

Examples

wb = openxlsx::createWorkbook()
add_to_wb(wb = wb, sheet = 'Indometh', x = Indometh)
add_to_wb(wb = wb, sheet = 'Iris', x = iris)


lbraglia/lbmisc documentation built on June 14, 2025, 6:44 p.m.