View source: R/transmute_df_into_label.R
transmute_df_into_label | R Documentation |
Takes the output from apa_print()
methods and modifies the results table
by transmuting information about degrees of freedom into the variable labels of
test-statistic columns.
transmute_df_into_label(x, check_df = TRUE, ...)
df_into_label(x, check_df = TRUE, ...)
## S3 method for class 'apa_results'
transmute_df_into_label(x, check_df = TRUE, ...)
## S3 method for class 'apa_results_table'
transmute_df_into_label(x, check_df = TRUE, ...)
x |
Either the complete output object created by |
check_df |
Logical. If TRUE (the default), checks if degrees-of-freedom-columns contain non-integer values. |
... |
further arguments passed from an to other methods |
An object of the same class as x
, where a redundant column with
degrees of freedom has been incorporated into the column label of the column
statistic
.
apa_out <- apa_print(aov(yield ~ N * P, npk))
# Standard output with separate columns for degrees of freedom:
apa_out$table
# Modified output where degrees of freedom are incorporated into the variable
# label of column 'statistic':
transmute_df_into_label(apa_out)$table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.