Learn R Programming

mariposa (version 0.7.3)

print.fisher_test: Print Fisher's exact test results (compact)

Description

Compact print method for objects of class "fisher_test". Shows a one-line summary with the exact p-value, significance stars, and sample size.

For the full detailed output (contingency table, test results), use summary().

Usage

# S3 method for fisher_test
print(x, digits = 4, ...)

Value

Invisibly returns the input object x.

Arguments

x

An object of class "fisher_test"

digits

Number of decimal places (default: 4)

...

Additional arguments (currently unused)

Examples

Run this code
result <- fisher_test(survey_data, row = gender, col = region)
result              # compact one-line overview
summary(result)     # full detailed output

Run the code above in your browser using DataLab