corr_focus: Focus on section of a correlation matrix

View source: R/corr_coef.R

corr_focusR Documentation

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, ...)

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.

Value

A tibble

Examples

corr_coef(data_ge2) |> corr_focus(PH)

TiagoOlivoto/WAASB documentation built on March 20, 2024, 4:18 p.m.