calc_cor_target: Calculate correlations against a target variable

Description Usage Arguments Examples

Description

Calculate correltions for all numeric variables against a target variable.

Usage

1
2
3
4
5
6
7
calc_corr_target(
  df,
  target,
  use = "pairwise.complete.obs",
  fct_reorder = FALSE,
  fct_rev = FALSE
)

Arguments

df

A tibble

target

Name of continuous target variable

use

A string indicating missing valuable treatment for correlation analysis

fct_reorder

Re-order factors?

fct_rev

Reverse factors?

Examples

1
get_cor(mtcars, mpg)

PsychlytxTD/fht documentation built on July 4, 2020, 5:42 p.m.