Learn R Programming

mariposa (version 0.7.3)

print.t_test: Print t-test results (compact)

Description

Compact print method for objects of class "t_test". Shows a one-line summary per variable with test statistic, p-value, effect size, and sample size.

For the full detailed output, use summary().

Usage

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

Value

Invisibly returns the input object x.

Arguments

x

An object of class "t_test" returned by t_test.

digits

Number of decimal places to display. Default is 3.

...

Additional arguments (not used).

Examples

Run this code
result <- t_test(survey_data, life_satisfaction, group = gender)
result              # compact one-line overview
summary(result)     # full detailed output

Run the code above in your browser using DataLab