save_xlsx: Save a table in the *.xlsx format

Description Usage Arguments Value Examples

Description

This function is called internally by other functions. It is a wrapper for the function write.xlsx of the package openxlsx.

Usage

1
save_xlsx(table, table_basename, first_column_name = NULL, typeTab)

Arguments

table

The dataframe to be exported as *.xlsx

table_basename

A string indicating the base name for the file to be created.

first_column_name

A string indicating the name of the first column which is taken from the row names of the table

typeTab

A character specifying what type of table to output: 'LRT' for a table with likelihood-ratio statistics and random variances, 'efSizes' for a table with estimated effect sizes and their standard errors, and 'heterog' for a table of heterogeneity metrics.

Value

The table (but the return is invisible).

Examples

1
2
3
4
5
6
7
d <- data.frame(test = 1:5, id = LETTERS[1:5],
                a= seq(from = 0.01, to = 0.05, by = 0.01),
                test = 1:5, id = LETTERS[1:5],
                p = c('<0.001', '0.002', '0.260', '<0.001', '0.987'))
dir.create('tables')
save_xlsx(table = d, table_basename = './tables/test1',
          typeTab = 'LRT')

radchukv/adRes documentation built on June 1, 2019, 7:05 p.m.