This function correlates a whole dataframe, filtering automatically all numerical values.
corr(df, method = "pearson", logs = TRUE, plot = FALSE, top = NA)
Dataframe. It doesn't matter if it's got non-numerical columns: they will be filtered!
Character. Any of: c("pearson", "kendall", "spearman")
Boolean. Automatically calculate log(values) for numerical variables (not binaries)
Boolean. Do you wish to see a plot?
Integer. Select top N most relevant variables? Filtered and sorted by mean of each variable's correlations