Description Usage Arguments Details See Also Examples
Summarize method for the cor_list
class.
1 2 |
.data |
An object of class |
x |
Variables to include/exclude from one side of the correlation.
You can use the same specifications as in |
y |
Variables to include/exclude from the other side of the
correlation. You can use the same specifications as in
|
sort |
Logical value indicating whether the output should be sorted. If
|
... |
further arguments passed to or from other methods. |
The summarize
method for the cor_list
class allows for
interactive exploration of correlation results. Use
select_helpers
expressions to return specific
bivariate relationships that you want to look at.
cor_boot
, cor_list
,
select
, select_helpers
,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Create a correlation list for the numeric variables from the iris data set
iris_cors <- cor_list(iris[,-5])
# Look at all correlations with Sepal.Length
summarize(iris_cors, x = Sepal.Length)
# Look at all correlations between sepal measurements and petal measurements
summarize(iris_cors, x = starts_with("Sepal"), y = starts_with("Petal"))
# Look at all correlations with Sepal.Length, excluding Sepal.Width
summarize(iris_cors, x = Sepal.Length, y = -Sepal.Width)
# Look at all correlations in their original order
summarize(iris_cors, sort = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.