This function correlates a whole dataframe with a single feature.
corr_var(df, var, method = "pearson", plot = TRUE, logs = TRUE,
top = NA, zeroes = FALSE)
Dataframe.
Character. Name of the variable to correlate
Character. Any of: c("pearson", "kendall", "spearman")
Boolean. Do you wish to plot the result?
Boolean. Automatically calculate log(values) for numerical variables (not binaries)
Integer. If you want to plot the top correlations, define how many
Do you wish to keep zeroes in correlations too?