exportToExcel {cSEM}R Documentation

Export to Excel (.xlsx)




  .postestimation_object = NULL, 
  .filename              = "results.xlsx",
  .path                  = NULL



An object resulting from a call to one of cSEM's postestimation functions (e.g. summarize()).


Character string. The file name. Defaults to "results.xlsx".


Character string. Path of the directory to save the file to. Defaults to the current working directory.


Export results from postestimation functions assess(), predict(), summarize() and testOMF() to an .xlsx (Excel) file. The function uses the openxlsx package which does not depend on Java!

The function is deliberately kept simple: all it does is to take all the relevant elements in .postestimation_object and write them (worksheet by worksheet) into an .xlsx file named .filename in the directory given by .path (the current working directory by default).

If .postestimation_object has class attribute _2ndorder two .xlsx files named ".filename_first_stage.xlsx" and ".filename_second_stage.xlsx" are created. If .postestimation_object is a list of appropriate objects, one file for each list elements is created.

Note: rerunning exportToExcel() without changing .filename and .path overwrites the file!

See Also

assess(), summarize(), predict(), testOMF()

[Package cSEM version 0.4.0 Index]