Skip to content

error reading xlsm file with read.xls

3 messages · Sebastian Kruk, David Winsemius

1 day later
#
On Dec 4, 2012, at 10:05 AM, Sebastian Kruk wrote:

            
That doesn't surprise me. It's a macro format. Why should R be reading Excel macros?

  
    
#
On Dec 5, 2012, at 2:19 PM, David Winsemius wrote:

            
The other point I would make is that you should be looking at the help page for read.xls and making sure that on the off-chance that the authors did intend for you to have access to Excel macros for some readsin in R tha thtey were using the same aruments. The error message says you are having problems with you argument list and looking at the help page makes me think you are using read.tabe arguments for read.xls. Not a wise idea.This is the list of formals:

read.xlsx(file, sheetIndex, sheetName=NULL, rowIndex=NULL,
  colIndex=NULL, as.data.frame=TRUE, header=TRUE, colClasses=NA,
  keepFormulas=FALSE, encoding="unknown", ...)

And it says the 'dots' are sent to data.frame rather than to read.table.
David Winsemius, MD
Alameda, CA, USA