corr_focus {metan}R 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)

[Package metan version 1.18.0 Index]