Learn R Programming

openxlsx2 (version 0.7)

wb_data: provide wb_data object as mschart input

Description

provide wb_data object as mschart input

Usage

wb_data(wb, sheet = current_sheet(), dims, ...)

Arguments

wb

a workbook

sheet

a sheet in the workbook either name or index

dims

the dimensions

...

additional arguments for wb_to_df. Be aware that not every argument is valid.

See Also

wb_to_df() wb_add_mschart()

Examples

Run this code
 wb <- wb_workbook() %>%
   wb_add_worksheet() %>%
   wb_add_data(x = mtcars, dims = "B2")

 wb_data(wb, 1, dims = "B2:E6")

Run the code above in your browser using DataLab