[R] WriteXLS problem

Kenneth Roy Cabrera Torres krcabrer at une.net.co
Mon Sep 6 18:46:52 CEST 2010


I use the following sintaxis for the packages:

For WriteXLS I use:

writeXLS(todo2009,"todo2009.xls")

And for dataframes2xls I use:
dataframe2xls::write.xls(todo2009,"todo2009.xls")



El lun, 06-09-2010 a las 12:34 -0400, David Winsemius escribió:
> On Sep 6, 2010, at 12:25 PM, Kenneth Roy Cabrera Torres wrote:
> 
> > Thank you Ivan for you answer:
> > El lun, 06-09-2010 a las 18:11 +0200, Ivan Calandra escribió:
> >> Hi,
> >>
> >> Are you sure you used the correct syntax and object names? It might  
> >> just
> >> be because of that...(reading the error messages)
> > Im sure, because it works with write.csv or write.table.
> 
> Sure? You are making the incorrect assumption that those write  
> functions have the same syntax. At least for WriteXLS that assumption  
> is false. The help page clearly states that the objects need to be  
> quoted rather than being referred to by their "naked" names. The error  
> you are getting with your "second option" suggests to me that you  
> offered an unquoted name of an object.
> 
> You can offer a vector of quoted names of dataframes to WriteXLS and  
> each named dataframe will be converted to a worksheet within the  
> workbook.
>



More information about the R-help mailing list