Single-Line Helpers for Consumer Survey Analysis


[Up] [Top]

Documentation for package ‘ezrsurvey’ version 0.7.1

Help Pages

A B C D E G H I L M N O P R S T U W

-- A --

add_currency Add a converted-currency column to a data frame
add_region Add region (and subregion) columns from a country column
annotate_bands Annotate a plot with labelled decision bands
apply_order Apply a registered order to a vector

-- B --

bands_nps Built-in decision-band presets
bands_nps_score Built-in decision-band presets
bands_rating_3 Built-in decision-band presets
bands_rating_5 Built-in decision-band presets
bin_numeric Bin a numeric vector into labelled groups
brand_info Show the active brand settings

-- C --

calc_importance Driver importance
calc_nps Net Promoter Score
calc_percentage Count a categorical question as percentages
calc_percentage_batch Percentages for a batch of questions at once
calc_percentage_multi Tabulate a check-all-that-apply (multi-select) question as percentages
calc_summary Summarise a numeric question (mean / median / sd)
clean_label Tidy an exported column name into a readable label
clear_brand Clear the active brand
clear_checkpoints Delete saved cross-tab checkpoints
clear_dataset Get, check or clear the default dataset
clear_weights Inspect or clear the session weighting scheme
clear_weights_cache Forget cached survey weights
compare_values Compare a metric between two datasets (e.g. two events or waves)
convert_currency Convert amounts between currencies
country_region Country to region lookup
crosstab Cross-tabulate two survey questions
crosstab_banner Build a master banner (cross-tab) table
currency_rates Currency exchange-rate snapshot

-- D --

dataset_vars Get, check or clear the default dataset
diagnose Survey precision diagnostics for one or more columns
drop_items Drop unwanted answer categories from a question

-- E --

edit_ezrsurvey_profile Open the ezrsurvey profile for editing
ensure_numeric Coerce text to numeric, salvaging embedded numbers
example_report Copy the worked example report into a folder
export_summary_xlsx Export a per-question summary workbook (table + chart per sheet)
export_xlsx Export several tables to one Excel workbook, a tab each
ezrsurvey_options Get or set ezrsurvey defaults
ezrsurvey_profile_paths Profile file locations ezrsurvey looks in

-- G --

generation_scheme Generational-cohort definitions
get_dataset Get, check or clear the default dataset
get_order Get the levels of a registered order
get_weights Inspect or clear the session weighting scheme

-- H --

has_dataset Get, check or clear the default dataset
has_weights Inspect or clear the session weighting scheme

-- I --

ipm_model Build an importance / performance model

-- L --

label_pct Percent label formatter
list_currencies List the currencies in a rate table
list_orders List registered orders
list_report_templates Available Quarto report templates
load_ezrsurvey_profile Load ezrsurvey defaults from a YAML profile

-- M --

margin_of_error Margin of error from a standard error
mark_value Mark a single value on a plot

-- N --

na_blank Convert blank and boilerplate non-answers to 'NA'
nice_max Round an axis maximum up to a "nice" value
nps_group Classify Net Promoter Score answers into groups

-- O --

order_for Find the order that applies to a variable

-- P --

pal_brand Brand colour palette
pal_neutral ezrsurvey colour palettes
pal_nps ezrsurvey colour palettes
pal_rating ezrsurvey colour palettes
pal_sequential_blue ezrsurvey colour palettes
parse_filename Split a filename column into metadata columns
plot_bars Bar chart of a percentage table (auto-laid-out)
plot_diff Diverging bar chart of differences
plot_gauges Stacked score gauges (NPS over average quality, etc.)
plot_ipm Importance / performance matrix
plot_nps NPS distribution slide (0-10 scale with group labels)
plot_nps_gauge Score gauge with decision bands and a value marker
plot_quotes_tree Treemap of selected quotes
plot_rating_grid A stacked rating chart for a whole block of questions
plot_stacked_rating Stacked rating bars with weighted-average ordering
podracing_survey Simulated pod-racing fan survey
precision_summary Plain-language survey precision summary

-- R --

read_folder Read and stack every CSV in a folder
recode_age Recode age into standard survey bands
recode_generation Recode age or birth year into a generational cohort
recode_likert Recode a worded rating scale to integers
recode_region Look up the region or subregion for a country
recode_subregion Look up the region or subregion for a country
register_order Register a reusable ordinal level order
register_order_presets Register a set of common ordinal scales
remove_order Remove a registered order
report_add_plot Add a plot to a report
report_add_slide Add a slide (PowerPoint) or heading (Word) to a report
report_add_table Add a table to a report
report_add_text Add a paragraph of text to a report
report_deck Build a slide deck from a list of plots and tables in one call
report_layouts List the slide layouts of a PowerPoint template
report_new Start a new PowerPoint or Word report
report_save Save a report to disk
report_section Add a section-divider slide
report_slide Add a whole slide in one call (title plus its content)
report_title_slide Add the opening title slide
rescale_bands Move a band specification onto another scale
reset_ezrsurvey_options Reset all ezrsurvey options to their built-in defaults
rse Relative standard error
rse_rating Rate precision from a relative standard error

-- S --

sample_comments Pick a random sample of open-text comments
sample_comments_diverse Pick a diverse, information-rich sample of comments
save_data Quick-save a table to CSV, TSV or XLSX
save_ezrsurvey_profile Save current options and orders to a profile
save_output Quick-save any ezrsurvey output (plot or table)
save_plot Quick-save a plot to PNG, SVG or PDF
scaffold_report Scaffold a Quarto survey-report template
scale_color_brand Brand fill and colour scales
scale_color_rating Rating colour and fill scales
scale_colour_brand Brand fill and colour scales
scale_colour_rating Rating colour and fill scales
scale_fill_brand Brand fill and colour scales
scale_fill_nps NPS group fill scale
scale_fill_rating Rating colour and fill scales
scale_y_pct Continuous y-scale capped at a nice maximum with optional percent labels
select_prefix Select identifier and prefixed columns
select_suffix Select identifier and suffixed columns
set_weights Set a survey weighting scheme for the session
se_mean Standard error of a mean (point estimate)
se_prop Standard error of a proportion
shopping_survey Simulated historical shopping-behaviour survey
split_multi Split a packed multi-select column into one column per answer

-- T --

theme_ezrsurvey ezrsurvey ggplot2 themes
theme_ezrsurvey_x ezrsurvey ggplot2 themes
theme_ezrsurvey_xy ezrsurvey ggplot2 themes
theme_ezrsurvey_y ezrsurvey ggplot2 themes
theme_transparent Transparent-background theme fragment

-- U --

use_brand Adopt an organisation brand from a PowerPoint or Word template
use_dataset Set a default dataset for the session
use_ezrsurvey_profile Create a starter ezrsurvey profile

-- W --

weight_vector Compute the per-respondent survey weights