print.CorTable: Print a 'CorTable' object

View source: R/faststats.R

print.CorTableR Documentation

Print a CorTable object

Description

Print a CorTable object

Usage

## S3 method for class 'CorTable'
print(x, type = c("full", "r/p", "r/h"), alpha = 0, digits = 2, ...)

Arguments

x

a CorTable object

type

The type of table to print.

  • "full" Separately print the correlation, sample size, p-value, and holdout matrices

  • "r/p" Print a single matrix with p-values in the upper triangle and correlations in the lower triangle

  • "r/h" Print a single matrix with holdout values in the upper triangle and correlations in the lower triangle

alpha

Correlations with a p-value below this value will be highlighted with an asterisk.

digits

Digits to round the values by. p-values will be rounded by this value +1

...

Ignored

Value

The printed character matrix is silently returned.

Author(s)

Sercan Kahveci

Examples

test<-CorTable(mtcars,holdout.goal="flip")
print(test)

test<-CorTable(mtcars,holdout.goal="nsig")
print(test,type="r/h")


Spiritspeak/skMisc documentation built on April 12, 2025, 5:40 a.m.