Calculate correlation between two vectors
get_correlation(x, y, method, category = NULL, test = TRUE)
The result of cor.test() for metric vectors, chisq.test for Cramer's V.
First vector
Second vector
One of "spearman" or "pearson" for metric vectors. For catecorical vectors, use "cramer" or "npmi".
A vector of values to focus. Necessary for the npmi method only.
Boolean; whether to perform significance tests.