Skip to content

Appending many different and separate Excel files using R

1 message · Rui Barradas

#
Hello,

This is the sort of question that could interess others, so you should 
have CCed it to the list.
As for the question, from the package vignette, section 3.3.6:

"writeWorksheetToFile() is a wrapper function, calling loadWorkbook(), 
createSheet() and saveWorkbook()
functions subsequently. It therefore allows for writing data into 
worksheets of an Excel file in one call."

To see it, run
vignette('XLConnect', 'XLConnect')

Since it seems that you don't need several worksheets in the output 
file, a work around would be to use write.csv, like you do in your post. 
With the side effect that any other software package would be able to 
access, and get rid of Excel dependency.
But if for some reason you need Excell, then the error message is clear, 
only file extensions xls and xlsx are allowed.

Rui Barradas

Em 18-09-2012 13:54, Amir Kasaeian escreveu: