Learn R Programming

metan (version 1.19.0)

corr_focus: Focus on section of a correlation matrix

Description

Select a set of variables from a correlation matrix to keep as the columns, and exclude these or all other variables from the rows.

Usage

corr_focus(model, ...)

Value

A tibble

Arguments

model

A model computed with corr_coef() or a symmetric matrix, often produced with stats::cor().

...

One or more unquoted variable name separated by commas. Variable names can be used as if they were positions in the data frame, so expressions like x:y can be used to select a range of variables.

Examples

Run this code
corr_coef(data_ge2) |> corr_focus(PH)

Run the code above in your browser using DataLab