test_cor: Calculate correlations and p-values between columns.

View source: R/test_cor.R

test_corR Documentation

Calculate correlations and p-values between columns.

Description

Calculate correlations and p-values between columns.

Usage

test_cor(
  x,
  y = NULL,
  method = "pearson",
  use = "everything",
  p_adj_method = "none"
)

Arguments

x

Matrix or data frame with columns to correlate.

y

Matrix or data frame, if provided will be correlated with x.

method

Passed to stats::cor.

use

Passed to stats::cor.

p_adj_method

P-value adjustment method, passed to stats::p.adjust.

Value

Data frame in long format with correlation values and nominal and adjusted p-values.


ggcorrheatmap documentation built on Aug. 25, 2025, 1:11 a.m.