Description Usage Arguments Value
This function will return the correlation between a specfied target
variable and all other variables in the same data frame. Uses cor
to calculate correlations.
1 2 | targetCorrelations(df, target, N = NULL, use = "everything",
method = c("pearson", "kendall", "spearman"))
|
df |
Dataframe containing all variables |
target |
Name of the target variable |
N |
Default |
use |
Same as |
method |
Same as |
Named vector of the correlations, ordered by absolute highest to lowest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.