The tab_corr function takes in a correlation matrix as computed by the cor() function and formats it. The apa.cor.table() function takes in data, calculates the correlations and formats the output.