cor_table: Get correlation between columns

cor_tableR Documentation

Get correlation between columns

Description

Get correlation between columns

Usage

cor_table(
  dt,
  method = c("pearson", "spearman")[1],
  upper_triangle = TRUE,
  decimals = 2,
  melt = TRUE,
  na.rm.melt = TRUE
)

Arguments

dt

a data.table

method

c("pearson", "spearman")[1]

upper_triangle

logical, default TRUE. Make lower triangle values NA.

decimals

numeric, default 2. How many decimals for correlation

melt

logical, default TRUE.

na.rm.melt

logical, default TRUE. Remove NA values from melted table.

Value

a data.table with 3 columns, Var1, Var2 and Cor


Roleren/ORFik documentation built on Nov. 13, 2024, 10 p.m.