View source: R/create_xlsx_overview.R
create_xlsx_overview | R Documentation |
This function uses the openxlsx package to create an Excel workbook with multiple sheets that contain descriptive statistics and correlations for a specified variable set. There are options to specify a) a grouping variable to include descriptive statistics that are calculated separately by group and b) up to two cluster identifiers to compute multilevel correlations between the respective group means at the specified hierarchical levels.
create_xlsx_overview(
data,
.cols,
.file = "overview.xlsx",
.group = NULL,
.id_cluster_l2 = NULL,
.id_cluster_l3 = NULL,
.round = 3
)
data |
A data frame. |
.cols |
< |
.file |
A character string specifying the file name and the path where to save the .xlsx file. The default is to save an .xlsx file named 'overview' in the current working directory. |
.group |
< |
.id_cluster_l2 |
< |
.id_cluster_l3 |
< |
.round |
Optional. An integer constant indicating the number of digits for rounding the results. The default is to print 3 digits. |
An Excel workbook (as .xlsx file) saved in .file
with multiple sheets
providing an overview with descriptive statistics and correlations
for the variables specified in .cols
.
See the openxlsx package.
## Not run:
create_xlsx_overview(data = studach, .cols = gender:read,
.file = "student_achievement_overview.xlsx",
.group = ts, .id_cluster_l2 = id_cla, .id_cluster_l3 = id_sch,
.round = 3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.