| column_formats | R Documentation |
Returns an S7 object that contains a list of column_format objects that can be used to format parameters in APA style.
column_formats(
.data = NULL,
accuracy = NULL,
labels = character(0),
custom_columns = NULL,
variable_labels,
intercept_text,
starred_columns
)
.data |
list of |
accuracy |
rounding accuracy of the formatters (e.g., |
labels |
named character vector of variable labels, named by the
variables (e.g., |
custom_columns |
named list of |
variable_labels |
deprecated; use |
intercept_text, starred_columns |
deprecated, and never used. Set the
label of the intercept row for all tables with
|
Each column_format() in the list is named by the column it formats.
Formats are read, added, replaced, and removed with $ (e.g.,
my_formats$beta, my_formats$Predictor <- column_format("Predictor"), or
my_formats$beta <- NULL), and the properties of a single format are read
and changed with @ (e.g., my_formats$p@header). The get_ properties
listed under Slots return the names, headers, formatters, and so on of all
the formats at once (e.g., my_formats@get_tibble).
Use the object with the column_formats argument of apa_flextable(),
apa_format_columns(), and the table functions, or set it for every table
with apa7_defaults(column_formats = my_formats).
column_formats
get_column_namesgetter for column names
get_headersgetter for column headers
get_latexgetter for column latex headers
get_formattersgetter for column formatters
get_header_renamegetter for column names with headers as names
get_header_rename_latexgetter for column names with latex headers as names
get_tibblegetter for tibble with column names, headers, latex headers, and formatters
get_abbreviationsgetter for the abbreviations defined by the column formats, as a character vector of definitions named by the term defined
my_formats <- column_formats()
my_formats$Coefficient@formatter <- \(x) round(x, 2)
my_formats$Coefficient@formatter(2.214)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.