apa7_tbl: Tables ready for 'apa_flextable'

apa7_tblR Documentation

Tables ready for apa_flextable

Description

The tibbles returned by apa_anova(), apa_chisq(), apa_cor(), apa_descriptives(), apa_factor_cor(), apa_htest(), apa_loadings(), apa_means(), apa_contrasts(), apa_slopes(), apa_parameters(), apa_performance(), apa_performance_comparison(), apa_reliability(), apa_collinearity(), apa_n_factors(), apa_publication_bias(), and apa_subgroups() have class apa7_tbl. They are ordinary tibbles for post-processing with dplyr, but in knitr and Quarto documents they are rendered as an apa_flextable() automatically. In the console they print as tibbles.

Usage

## S3 method for class 'apa7_tbl'
print(x, ...)

## S3 method for class 'apa7_tbl'
knit_print(x, ...)

Arguments

x

an apa7_tbl

...

arguments passed to the next method

Details

The apa7.print option (also set with apa7_defaults(print = )) controls this behavior:

  • "auto" (default): flextable in knitr/Quarto, tibble in the console.

  • "flextable": flextable everywhere.

  • "tibble": tibble everywhere.

To render with non-default settings, pass the table to apa_flextable() explicitly, which always returns a flextable.

Value

x, invisibly, for print. A knit_asis or flextable output for knit_print.

Examples

fit <- lm(mpg ~ cyl + wt, data = mtcars)
# Prints as a tibble in the console
apa_parameters(fit)

# It is still a tibble, so it can be post-processed
apa_parameters(fit) |>
  dplyr::filter(Variable != "Constant") |>
  apa_flextable()

apa7 documentation built on Dec. 1, 2026, 5:06 p.m.