Skip to contents

Tabulation

tab()
Create a table or crosstab
tab_all()
Apply tab() to multiple variables
tab_mr()
Create a table or crosstab for a multiple response (pick-any) set
tab_mr_all()
Apply tab_mr() to multiple multiple response sets
tab_grid()
Create a full distribution table for a grid question
tab_grid_all()
Apply tab_grid() to multiple grid questions
tab_grid_t()
Create a top/bottom box table or crosstab for a grid question
tab_grid_t_all()
Apply tab_grid_t() to multiple grid questions

Tracking

merge_waves()
Merge two survey waves

Statistical

standardize()
Standardize numeric and factor variables (z-scores)
normalize()
Normalize numeric and factor variables to a 0–1 scale
one_hot_encode()
One-hot encode categorical variables
cor_matrix()
Compute a correlation matrix
cor_heatmap()
Plot a correlation heatmap

Segmentation

kmeans_grid()
Run a grid of k-means clustering models

Data quality

strline()
Identify straightliners in grid questions
lowqual_gpt()
Identify low-quality open-ended responses using the OpenAI API

Open-ended coding

export_coding()
Export a coding workbook
import_coding()
Import a coding workbook and merge coded variable into the dataset
theme_gpt()
Generate a thematic code list using the OpenAI API
code_gpt()
Code open-ended survey responses using the OpenAI API
code_gpt_to_df()
Process code_gpt() output to the dataset
code_gpt_to_excel()
Write code_gpt() results to Excel workbook

Miscellaneous

combine()
Combine split variables into a single variable

S3 methods

print(<tab_result>)
Custom print method for tab() results
print(<tab_mr_result>)
Custom print method for tab_mr() results
print(<tab_grid_result>)
Custom print method for tab_grid() results
print(<tab_grid_t_result>)
Custom print method for tab_grid_t() results