Skip to content
Prev 366929 / 398506 Next

[FORGED] Export Forecasted output to a table (excel)

The original 2001 JSM presentation by Jon Cryer is available here:

  https://oit.utk.edu/research/documentation/Documents/ExcelStatProbs.pdf

and here:

  http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.617.4297&rep=rep1&type=pdf

It would appear that he has retired from Iowa and may no longer have an online directory.

Patrick Burns also has a very good presentation and a reference listing here:

  http://www.burns-stat.com/documents/tutorials/spreadsheet-addiction/

as does Frank:

  http://biostat.mc.vanderbilt.edu/wiki/Main/ExcelProblems


FWIW, in the context of a nuanced response and differentiating between using Excel for any actual analyses, which is largely what the above references are warning against and simply for narrowly exporting R results, there are various packages available that can facilitate that, presuming you solve the underlying issue of getting the data into a compatible format (e.g. data frame).

The R Data Import/Export Manual is helpful here:

  https://cran.r-project.org/doc/manuals/r-release/R-data.html

The use of the ?str function can help provide insights into the structure of the returned object and how you might access selected components of the structure to achieve your goal.

An alternative to using Excel would be to use something like the Knitr package, which supports the use of markdown and can facilitate exporting formatted tables, etc. to HTML, PDF and so forth:

  https://yihui.name/knitr/


Regards,

Marc Schwartz