Learn R Programming

⚠️There's a newer version (4.2.8) of this package.Take me there.

openxlsx (version 2.4.0)

Read, Write and Edit XLSX Files

Description

Simplifies the creation of .xlsx files by providing a high level interface to writing, styling and editing worksheets. Through the use of Rcpp, read/write times are comparable to the xlsx and XLConnect packages with the added benefit of removing the dependency on Java.

Copy Link

Version

Install

install.packages('openxlsx')

Monthly Downloads

376,325

Version

2.4.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Alexander Walker

Last Published

March 7th, 2015

Functions in openxlsx (2.4.0)

removeCellMerge

Create a new Workbook object
convertFromExcelRef

Convert excel column name to integer index
freezePane

Freeze a worksheet pane
addWorksheet

Add a worksheet to a workbook
addStyle

Add a style to a set of cells
mergeCells

Merge cells within a worksheet
loadWorkbook

Load an exisiting .xlsx file
conditionalFormat

Add conditional formatting to cells
convertToDateTime

Convert from excel time number to R POSIXct type.
conditionalFormatting

Add conditional formatting to cells
createWorkbook

Create a new Workbook object
getCellRefs

Return excel cell coordinates from (x,y) coordinates
deleteData

Delete cell data
insertPlot

Insert the current plot into a worksheet
removeRowHeights

Remove custom row heights from a worksheet
setHeaderFooter

Set document headers and footers
setRowHeights

Set worksheet row heights
convertToDate

Convert from excel date number to R Date type
getBaseFont

Return the workbook defaul font
read.xlsx

Read data from a worksheet or Workbook object into a data.frame
openxlsx

xlsx reading, writing and editing.
removeWorksheet

Remove a worksheet from a workbook
renameWorksheet

Rename an exisiting worksheet
setColWidths

Set worksheet column widths
openXL

Open a Microsoft Excel file (xls/xlsx) or an openxlsx Workbook
createStyle

Create a cell style
names

get or set worksheet names
replaceStyle

Replace an existing cell style
getStyles

Returns a list of all styles in the workbook
getDateOrigin

Return the date origin used internally by an xlsx or xlsm file
readWorkbook

Read data from a worksheet into a data.frame
removeColWidths

Remove custom column widths from a worksheet
saveWorkbook

save Workbook to file
addFilter

add filters to columns
removeFilter

removes worksheet filter from addFilter and writeData
writeDataTable

Write to a worksheet and format as a table
worksheetOrder

Order of worksheets in xlsx file
setHeader

Set header for all worksheets
write.xlsx

write directly to an xlsx file
insertImage

Insert an image into a worksheet
showGridLines

Set worksheet gridlines to show or hide.
pageSetup

Set page margins, orientation and print scaling
setFooter

Set footer for all worksheets
modifyBaseFont

Modify the default font
writeData

Write an object to a worksheet
sheets

Returns names of worksheets.