Learn R Programming

lsr (version 1.0.0)

print.TTest: Print t-test results

Description

Prints the results of a t-test in a readable, beginner-friendly format. This function is called automatically whenever a result from oneSampleTTest, independentSamplesTTest, or pairedSamplesTTest is displayed.

Usage

# S3 method for TTest
print(x, ...)

Value

Invisibly returns x unchanged.

Arguments

x

A t-test result, as returned by oneSampleTTest, independentSamplesTTest, or pairedSamplesTTest.

...

Additional arguments (unused, included for compatibility).