Learn R Programming

openxlsx2 (version 0.6.1)

wb_remove_col_widths: Remove column widths from a worksheet

Description

Remove column widths from a worksheet

Usage

wb_remove_col_widths(wb, sheet = current_sheet(), cols)

Arguments

wb

A workbook object

sheet

A name or index of a worksheet

cols

Indices of columns to remove custom width (if any) from.

See Also

wb_set_col_widths()

Examples

Run this code
## Create a new workbook
wb <- wb_load(file = system.file("extdata", "loadExample.xlsx", package = "openxlsx2"))

## remove column widths in columns 1 to 20
wb_remove_col_widths(wb, 1, cols = 1:20)

Run the code above in your browser using DataLab