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 20, 2017, 3:24 a.m.

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.