removeColWidths: Remove column widths from a worksheet

Description Usage Arguments Author(s) See Also Examples

View source: R/wrappers.R

Description

Remove column widths from a worksheet

Usage

1
removeColWidths(wb, sheet, cols)

Arguments

wb

A workbook object

sheet

A name or index of a worksheet

cols

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

Author(s)

Alexander Walker

See Also

setColWidths

Examples

1
2
3
4
5
6
## Create a new workbook
wb <- loadWorkbook(file = system.file("loadExample.xlsx", package = "openxlsx"))

## remove column widths in columns 1 to 20
removeColWidths(wb, 1, cols = 1:20)
saveWorkbook(wb, "removeColWidthsExample.xlsx", overwrite = TRUE)

openxlsx documentation built on May 30, 2017, 5:37 a.m.

Search within the openxlsx package
Search all R packages, documentation and source code