Learn R Programming

mariposa (version 0.7.3)

print.kendall_tau: Print Kendall's tau results (compact)

Description

Compact print method for objects of class "kendall_tau". Shows tau coefficient, p-value, and sample size per pair.

For the full detailed output including matrices, use summary().

Usage

# S3 method for kendall_tau
print(x, digits = 3, ...)

Value

Invisibly returns the input object x.

Arguments

x

An object of class "kendall_tau" returned by kendall_tau.

digits

Number of decimal places to display. Default is 3.

...

Additional arguments (not used).

Examples

Run this code
result <- kendall_tau(survey_data[1:300, ], age, life_satisfaction)
result              # compact one-line overview
summary(result)     # full correlation matrices

Run the code above in your browser using DataLab