Learn R Programming

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

XLConnect: Excel Connector for R

XLConnect is a comprehensive and cross-platform R package for manipulating Microsoft Excel files from within R. XLConnect differs from other related R packages in that it is completely cross-platform and as such runs under Windows, Unix/Linux and Mac (32- and 64-bit). Moreover, it does not require any installation of Microsoft Excel or any other special drivers to be able to read & write Excel files. The only requirement is a recent version of a Java Runtime Environment (JRE).

The package can easily be installed from CRAN via install.packages("XLConnect"). In order to get started have a look at the XLConnect and XLConnect for the Impatient package vignettes, the numerous demos available via demo(package = "XLConnect") or browse through the comprehensive reference manual.

Alternatively, you may install XLConnect directly from our github repository using the excellent devtools package:

require(devtools)

# Installs the master branch of XLConnect (= current development version)
install_github("xlconnect", username = "miraisolutions", ref = "master")

# Installs XLConnect 0.2-13
install_github("xlconnect", username = "miraisolutions", ref = "0.2-13")

For more examples and news see also our wordpress site.

Please send any enhancement requests or bug reports with a simple and self-contained reproducible example to xlconnect@mirai-solutions.com or log a corresponding issue on our github repository. For other questions you may also use Stackoverflow.

Copy Link

Version

Install

install.packages('XLConnect')

Monthly Downloads

6,367

Version

0.2-13

License

GPL-3

Maintainer

Martin Studer

Last Published

May 14th, 2017

Functions in XLConnect (0.2-13)

XLConnect-package

Excel Connector for R
XLConnectSettings

Performing general settings for XLConnect
aref2idx

Converting Excel cell references to row and column based cell references
cellstyle-class

Class "cellstyle"
XLC

XLConnect Constants
XLConnect-deprecated

Deprecated functions in package XLConnect
addImage-methods

Adding images to a worksheet
appendNamedRegion-methods

Appending data to a named region
appendWorksheet-methods

Appending data to worksheets
aref

Constructing Excel area references
cloneSheet-methods

Cloning/copying worksheets
col2idx

Converting Excel column names to indices
existsSheet-methods

Checking for existence of worksheets in a workbook
extractSheetName

Extracting the sheet name from a formula
createCellStyle-methods

Creating custom named and anonymous cell styles
createFreezePane-methods

Creating a freeze pane on a worksheet
$-methods

Executing workbook methods in object$method(...) form
existsName-methods

Checking existence of names in a workbook
getCellFormula-methods

Retrieving formula definitions from cells
getCellStyle-methods

Retrieving named cell styles
isSheetHidden-methods

Checking if worksheets are hidden in a workbook
isSheetVeryHidden-methods

Checking if worksheets are very hidden in a workbook
getLastRow-methods

Querying the last (non-empty) row on a worksheet
getReferenceCoordinates-methods

Querying the coordinates of the range reference by an Excel name
hideSheet-methods

Hiding worksheets in a workbook
idx2aref

Converting row and column based area references to Excel area references
createSplitPane-methods

Creating a split pane on a worksheet
cref2idx

Converting Excel cell references to indices
getCellStyleForType-methods

Querying the cell style per data type for the DATATYPE style action
getDefinedNames-methods

Retrieving defined names in a workbook
mirai

Mirai Solutions GmbH
normalizeDataframe

Data frame Normalization for Unit Tests
readTable

Reading Excel tables from a workbook
readWorksheet-methods

Reading data from worksheets
setFillForegroundColor-methods

Specifying the fill foreground color for cell styles
setFillPattern-methods

Specifying the fill pattern for cell styles
setMissingValue-methods

Setting missing value identifiers
getReferenceFormula-methods

Querying reference formulas of Excel names
getSheetPos-methods

Querying worksheet position
setColumnWidth-methods

Setting the width of a column in a worksheet
setDataFormat-methods

Specifying custom data formats for cell styles
setStyleAction-methods

Controlling application of cell styles when writing data to Excel
setStyleNamePrefix-methods

Setting the style name prefix for the "name prefix" style action
with.workbook

Evaluate an R expression in a workbook environment
workbook-class

Class "workbook"
setRowHeight-methods

Setting the height of a row in a worksheet
writeNamedRegionToFile

Writing named regions to an Excel file (wrapper function)
writeWorksheet-methods

Writing data to worksheets
clearRangeFromReference-methods

Clearing cell ranges in a workbook
clearSheet-methods

Clearing worksheets in a workbook
getReferenceCoordinatesForName-methods

Querying the coordinates of the range reference by an Excel name
xlcDump

Dumping data sets to Excel files
xlcEdit

Editing data sets in an Excel file editor
getReferenceCoordinatesForTable-methods

Querying the coordinates of the range of an Excel table
idx2col

Converting column indices to Excel column names
idx2cref

Converting indices to Excel cell references
isSheetVisible-methods

Checking if worksheets are visible in a workbook
onErrorCell-methods

Behavior when error cells are detected
print-methods

Print a workbook's filename
setActiveSheet-methods

Setting the active worksheet in a workbook
setAutoFilter-methods

Setting auto-filters on worksheets
createName-methods

Creating names in a workbook
createSheet-methods

Creating worksheets in a workbook
extraction-methods

Workbook data extraction & replacement operators
getActiveSheetIndex-methods

Querying the active worksheet index
getForceFormulaRecalculation-methods

Querying the coordinates of the range reference by an Excel name
getLastColumn-methods

Querying the last (non-empty) column on a worksheet
readNamedRegion

Reading named regions from a workbook
setDataFormatForType-methods

Setting the data format for the DATA_FORMAT_ONLY style action
setFillBackgroundColor-methods

Specifying the fill background color for cell styles
setWrapText-methods

Specifying text wrapping behaviour
show-methods

Display a workbook object
jTryCatch

Standard Java exception handling for XLConnect
removePane-methods

Removing panes from worksheet
removeSheet-methods

Removing worksheets from workbooks
xlcFreeMemory

Freeing Java Virtual Machine memory
xlcMemoryReport

Reporting free Java Virtual Machine memory
clearNamedRegion-methods

Clearing named regions in a workbook
clearRange-methods

Clearing cell ranges in a workbook
getActiveSheetName-methods

Querying the active worksheet name
setCellStyle-methods

Setting cell styles
setCellStyleForType-methods

Setting the cell style per data type for the DATATYPE style action
readNamedRegionFromFile

Reading named regions from an Excel file (wrapper function)
renameSheet-methods

Renaming worksheets from workbooks
saveWorkbook-methods

Saving Microsoft Excel workbooks
setForceFormulaRecalculation-methods

Forcing Excel to recalculate formula values when opening a workbook
setHyperlink-methods

Setting hyperlinks
summary-methods

Summarizing workbook objects
swissfranc

Historical Exchange Rates: CHF vs EUR, USD and GBP
xlcRestore

Restoring objects from Excel files
setSheetColor-methods

Setting colors on worksheet tabs
getBoundingBox-methods

Querying the coordinates of a worksheet bounding box
getSheets-methods

Querying available worksheets in a workbook
getTables-methods

Querying available Excel tables in a workbook
loadWorkbook

Loading Microsoft Excel workbooks
mergeCells-methods

Merging cells
readWorksheetFromFile

Reading data from worksheets in an Excel file (wrapper function)
removeName-methods

Removing names from workbooks
setSheetPos-methods

Setting worksheet position
unhideSheet-methods

Unhiding worksheets in a workbook
unmergeCells-methods

Unmerging cells
writeWorksheetToFile

Writing data to worksheets in an Excel file (wrapper function)
xlcCall

Automatic argument vectorization, default Java exception and warnings handling for XLConnect
setBorder-methods

Specifying borders for cell styles
setCellFormula-methods

Setting cell formulas
wrapList

Wrapping of arguments in a list
writeNamedRegion-methods

Writing named regions to a workbook