Description Usage Arguments Details Value See Also
This function returns a dataframe with the variable pairs above a given correlation threshold
1 2 3 4 5 6 7 |
data |
dataframe with the data |
vars |
vector of column names or column numbers holding the variables to analyse. If not specified all the columns will be used. |
threshold |
correlation threshold |
use |
an optional character string giving a method for computing covariances in the presence of missing values. This must be (an abbreviation of) one of the strings "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs" |
method |
a character string indicating which correlation coefficient is to be computed. One of "pearson" (default), "kendall", or "spearman", can be abbreviated |
It is based on the cor
function, but instead of a correlation matrix it returns
a dataframe with the pairwise combinations above a threshold.
a dataframe holding the variable pairs with a correlation higher than the specified threshold
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.