Takes a COIN and writes all main data tables and other things to an Excel file. This uses the 'openxlsx' package.
coin2Excel(COIN, fname = "COINresults.xlsx")
A COIN object
The file name to write to, as a character string
An Excel workbook with each table on a separate named tab.
1 2 3 4 5 6 7 8 9 10
## Here we write a COIN to Excel, but this is done to a temporary directory ## to avoid "polluting" the working directory when running automatic tests. ## In a real case, set fname to a directory of your choice. ASEM <- build_ASEM() # write to Excel in temporary directory coin2Excel(ASEM, fname = paste0(tempdir(), "\\ASEM_results.xlsx")) # spreadsheet is at: print(paste0(tempdir(), "\\ASEM_results.xlsx")) # now delete temporary file to keep things tidy in testing unlink(paste0(tempdir(),"\\ASEM_results.xlsx"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.