When df2 = NULL, a tibble containing correlation coefficients for df1 is
returned:
col_1, co1_2 character vectors containing names of numeric
columns in df1.
corr the calculated correlation coefficient.
p_value p-value associated with a test where the null hypothesis is that
the numeric pair have 0 correlation.
lower, upper lower and upper values of the confidence interval
for the correlations.
pcnt_nna the number of pairs of observations that were non missing for each
pair of columns. The correlation calculation used by inspect_cor() uses only
pairwise complete observations.
If df1 has class grouped_df, then correlations will be calculated within the grouping levels
and the tibble returned will have an additional column corresponding to the group labels.
When both df1 and df2 are specified, the tibble returned contains
a comparison of the correlation coefficients across pairs of columns common to both
dataframes.
col_1, co1_2 character vectors containing names of numeric columns
in either df1 or df2.
corr_1, corr_2 numeric columns containing correlation coefficients from
df1 and df2, respectively.
p_value p-value associated with the null hypothesis that the two correlation
coefficients are the same. Small values indicate that the true correlation coefficients
differ between the two dataframes.
Note that confidence intervals for kendall and spearman assume a normal sampling
distribution for the Fisher z-transform of the correlation.