Learn R Programming

lares (version 4.7)

corr_cross: Correlation Cross-Table

Description

This function creates a correlation full study and returns a rank of the highest correlation variables obtained in a cross-table.

Usage

corr_cross(df, plot = TRUE, max = 1, top = 25, ignore = NA,
  contains = NA, rm.na = FALSE, dummy = TRUE)

Arguments

df

Dataframe.

plot

Boolean. Show and return a plot?

max

Numeric. Maximum correlation permited (from 0 to 1)

top

Integer. Return top n results only

ignore

Character vector. Which columns do you wish to exlude?

contains

Character vector. Filter cross-correlations with variables that contains certain strings (using any value if vector used)

rm.na

Boolean. Remove NAs?

dummy

Boolean. Should One Hot Encoding be applied to categorical columns?

See Also

Other Correlations: corr_plot, corr_var, corr

Other Exploratory: corr_var, crosstab, df_str, distr, freqs_df, freqs, gain_lift, get_tweets, missingness, plot_cats, plot_df, plot_nums, tree_var, trendsRelated