How do I get a table of summary statistics in R?
The easiest way to create summary tables in R is to use the describe() and describeBy() functions from the psych library. The following examples show how to use these functions in practice.
How do I export a table from R to excel?
How to export or write data to Excel Spreadsheet in R? You can use write. xlsx() function of openxlsx and xlsx packages to export or write data from DataFrame to an Excel Spreadsheet or worksheet.