the output will be a correlation matrix in a data.table format
Arguments
data
a data object (a data frame or a data.table)
var_names
names of the variables for which to calculate
all pairwise correlations
row_var_names
names of the variables that will go on the rows
of the correlation matrix
col_var_names
names of the variables that will go on the columns
of the correlation matrix
round_r
number of decimal places to which to round
correlation coefficients (default = 2)
round_p
number of decimal places to which to round
p-values (default = 3)
output_type
which value should be filled in cells of the
correlation matrix? If output_type = "r", correlation
coefficients; if output_type = "p", p-values;
if output_type = "rp", correlation coefficients with
significance symbols based on p-values;
if output_type = "n", sizes of the samples used to calculate
the correlation coefficients