hpgl_cor: Wrap cor() to include robust correlations.

View source: R/helpers_misc.R

hpgl_corR Documentation

Wrap cor() to include robust correlations.

Description

Take covRob's robust correlation coefficient and add it to the set of correlations available when one calls cor(). I should reimplement this using S4.

Usage

hpgl_cor(df, method = "pearson", ...)

Arguments

df

Data frame to test.

method

Correlation method to use. Includes pearson, spearman, kendal, robust.

...

Other options to pass to stats::cor().

Value

Some fun correlation statistics.

See Also

[robust]

Examples

## Not run: 
 hpgl_cor(df = df)
 hpgl_cor(df = df, method = "robust")

## End(Not run)

elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.