get_var_corr_ {manymodelr} | R Documentation |
Get correlations for combinations
Description
Get correlations for combinations
Usage
get_var_corr_(
df,
subset_cols = NULL,
drop_columns = c("character", "factor"),
...
)
Arguments
df |
A 'data.frame' object for which correlations are required in combinations. |
subset_cols |
A 'list' of length 2. The values in the list correspond to the comparison and other_Var arguments in 'get_var_corr'. See examples below. |
drop_columns |
A character vector specifying column classes to drop. Defaults to c("factor","character") |
... |
Other arguments to 'get_var_corr' |
Details
This function extends get_var_corr by providing an opportunity to get correlations for combinations of variables. It is currently slow and may take up to a minute depending on system specifications.
Value
A data.frame object with combinations.
Examples
get_var_corr_(mtcars,method="pearson")
#use only a subset of the data.
get_var_corr_(mtcars,
subset_cols = list(c("mpg","vs"),
c("disp","wt")),
method="spearman",exact=FALSE)
[Package manymodelr version 0.3.7 Index]