Skip to contents

Variable Metadata

code_book()
Generate an interactive variable codebook
label_from_names()
Derive variable labels from column names name<sep>label
varlist() vl()
Generate a comprehensive summary of the variables

Tabulation

cross_tab()
Cross-tabulation
freq()
Frequency Table

Row-wise summaries

count_n()
Row-wise count of specific or special values
mean_n()
Row means with an optional minimum-valid-values rule
sum_n()
Row sums with an optional minimum-valid-values rule

Measures of Association

assoc_measures()
Association measures summary table
contingency_coef()
Pearson's contingency coefficient
cramer_v()
Cramer's V
gamma_gk()
Goodman-Kruskal Gamma
goodman_kruskal_tau()
Goodman-Kruskal's Tau
kendall_tau_b()
Kendall's Tau-b
kendall_tau_c()
Kendall's Tau-c (Stuart's Tau-c)
lambda_gk()
Goodman-Kruskal's Lambda
phi()
Phi coefficient
somers_d()
Somers' D
uncertainty_coef()
Uncertainty Coefficient
yule_q()
Yule's Q

Summary tables

table_categorical()
Categorical summary table
table_continuous()
Continuous summary table
table_continuous_lm()
Continuous-outcome linear-model table
table_regression()
Regression coefficient summary table
as_structured()
Extract the typed (structured) view of a spicy_regression_table

Export

copy_clipboard()
Copy data to the clipboard

Data

sochealth
Simulated social-health survey

ASCII helpers

build_ascii_table()
Build a formatted ASCII table
spicy_print_table()
Print a spicy-formatted ASCII table

Advanced S3 methods

Exported S3 methods. Most users dispatch them implicitly (print(x), broom::tidy(x), as.data.frame(x), tibble::as_tibble(x)). Documented here for direct invocation with custom arguments (e.g., print(..., digits = 2)).

print(<spicy_assoc_detail>)
Print a detailed association measure result
print(<spicy_assoc_table>)
Print an association measures summary table
print(<spicy_categorical_table>)
Print method for categorical summary tables
print(<spicy_continuous_lm_table>)
Print method for bivariate linear-model tables
print(<spicy_continuous_table>)
Print method for continuous summary tables
print(<spicy_cross_table>)
Print method for spicy_cross_table objects
print(<spicy_cross_table_list>)
Internal print method for lists of cross-tab tables
print(<spicy_freq_table>)
Print method for freq() tables
as.data.frame(<spicy_categorical_table>) as_tibble(<spicy_categorical_table>)
Coerce a spicy_categorical_table to a plain data frame or tibble
as.data.frame(<spicy_continuous_lm_table>) as_tibble(<spicy_continuous_lm_table>)
Coerce a spicy_continuous_lm_table to a plain data frame or tibble
as.data.frame(<spicy_continuous_table>) as_tibble(<spicy_continuous_table>)
Coerce a spicy_continuous_table to a plain data frame or tibble
as.data.frame(<spicy_regression_table>) as_tibble(<spicy_regression_table>)
Convert a spicy_regression_table to a plain data.frame / tibble
tidy(<spicy_categorical_table>) glance(<spicy_categorical_table>)
Tidying methods for a spicy_categorical_table
tidy(<spicy_continuous_lm_table>) glance(<spicy_continuous_lm_table>)
Tidying methods for a spicy_continuous_lm_table
tidy(<spicy_continuous_table>) glance(<spicy_continuous_table>)
Tidying methods for a spicy_continuous_table
tidy(<spicy_regression_table>) glance(<spicy_regression_table>)
Tidy / glance methods for spicy_regression_table
spicy_tables
Spicy table engine