Package: ezrsurvey 0.7.1

ezrsurvey: Single-Line Helpers for Consumer Survey Analysis

Simplifies the day-to-day work of research and insights professionals who analyse consumer and customer survey data but have limited coding experience. Wraps common 'tidyverse' patterns into single-line functions for the tasks these teams repeat constantly: loading and combining survey exports, turning questions into percentages and summaries, recoding rating and Net Promoter scales, deriving demographics such as age cohorts and regions, modelling the drivers of satisfaction, checking sampling precision, selecting illustrative open-text comments, and producing presentation-ready charts and reports. A simulated consumer-survey dataset is included for learning and examples. Weighting rakes to target margins as in Deming and Stephan (1940) <doi:10.1214/aoms/1177731829> and reports the design effect of Kish (1965, ISBN:978-0-471-10949-5); driver models use the relative weights of Johnson (2000) <doi:10.1207/S15327906MBR3501_1> or the random forests of Breiman (2001) <doi:10.1023/A:1010933404324>; the Net Promoter Score follows Reichheld (2003) <https://hbr.org/2003/12/the-one-number-you-need-to-grow>; and diverse comments are chosen by maximal marginal relevance as in Carbonell and Goldstein (1998) <doi:10.1145/290941.291025>.

Authors:Andreas Schellewald [aut, cre]

ezrsurvey_0.7.1.tar.gz
ezrsurvey_0.7.1.zip(r-4.7-any)ezrsurvey_0.7.1.zip(r-4.6-any)ezrsurvey_0.7.1.zip(r-4.5-any)
ezrsurvey_0.7.1.tgz(r-4.6-any)ezrsurvey_0.7.1.tgz(r-4.5-any)
ezrsurvey_0.7.1.tar.gz(r-4.7-any)ezrsurvey_0.7.1.tar.gz(r-4.6-any)
ezrsurvey_0.7.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
ezrsurvey/json (API)

# Install 'ezrsurvey' in R:
install.packages('ezrsurvey', repos = c('https://aschellewald.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mashud37/ezr-research/issues

Pkgdown/docs site:https://mashud37.github.io

Datasets:

On CRAN:

Conda:

3.40 score 125 exports 39 dependencies

Last updated from:9064194909. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK241
source / vignettesOK278
linux-releaseOK179
macos-releaseOK224
macos-oldrelOK249
windows-develOK159
windows-releaseOK204
windows-oldrelOK192
wasm-releaseOK121

Exports:%>%add_currencyadd_regionannotate_bandsapply_orderbands_npsbands_nps_scorebands_rating_3bands_rating_5bin_numericbrand_infocalc_importancecalc_npscalc_percentagecalc_percentage_batchcalc_percentage_multicalc_summaryclean_labelclear_brandclear_checkpointsclear_datasetclear_weightsclear_weights_cachecompare_valuesconvert_currencycrosstabcrosstab_bannerdataset_varsdiagnosedrop_itemsedit_ezrsurvey_profileensure_numericexample_reportexport_summary_xlsxexport_xlsxezrsurvey_optionsezrsurvey_profile_pathsgeneration_schemeget_datasetget_orderget_weightshas_datasethas_weightsipm_modellabel_pctlist_currencieslist_orderslist_report_templatesload_ezrsurvey_profilemargin_of_errormark_valuena_blanknice_maxnps_grouporder_forpal_brandpal_neutralpal_npspal_ratingpal_sequential_blueparse_filenameplot_barsplot_diffplot_gaugesplot_ipmplot_npsplot_nps_gaugeplot_quotes_treeplot_rating_gridplot_stacked_ratingprecision_summaryread_folderrecode_agerecode_generationrecode_likertrecode_regionrecode_subregionregister_orderregister_order_presetsremove_orderreport_add_plotreport_add_slidereport_add_tablereport_add_textreport_deckreport_layoutsreport_newreport_savereport_sectionreport_slidereport_title_sliderescale_bandsreset_ezrsurvey_optionsrserse_ratingsample_commentssample_comments_diversesave_datasave_ezrsurvey_profilesave_outputsave_plotscaffold_reportscale_color_brandscale_color_ratingscale_colour_brandscale_colour_ratingscale_fill_brandscale_fill_npsscale_fill_ratingscale_y_pctse_meanse_propselect_prefixselect_suffixset_weightssplit_multitheme_ezrsurveytheme_ezrsurvey_xtheme_ezrsurvey_xytheme_ezrsurvey_ytheme_transparentuse_branduse_datasetuse_ezrsurvey_profileweight_vector

Dependencies:bitbit64clicliprcpp11crayondplyrfarvergenericsggplot2gluegtablehmsisobandlabelinglifecyclemagrittrpillarpkgconfigprettyunitsprogresspurrrR6RColorBrewerreadrrlangS7scalesstringistringrtibbletidyrtidyselecttzdbutf8vctrsviridisLitevroomwithr

Banner tables
The shape of it | Numbers and categories in one table | Weighting | Letting it choose the variables | Runs long enough to worry about | Getting it out

Last update: 2026-11-04
Started: 2026-11-04

Countries, regions and currency
The country column people typed | Adding the column | Reporting against the standard | Money in eleven currencies

Last update: 2026-11-04
Started: 2026-11-04

Getting started with ezrsurvey
The data | Percentages without the count/mutate/pivot_wider dance | Reusable level orders | Net Promoter Score | Importance / performance | Comparing two events | How precise is it? | Why relative standard error? | Saving and exporting | Where to next

Last update: 2026-11-04
Started: 2026-11-04

PowerPoint decks
One call | A slide at a time | Your organisation's template | Without a template | Google Slides

Last update: 2026-11-04
Started: 2026-11-04

Quarto reports
The scaffold | Rendering it | On your own template | A finished example to copy | Which route to take

Last update: 2026-11-04
Started: 2026-11-04

Readme and manuals

Help Manual

Help pageTopics
Add a converted-currency column to a data frameadd_currency
Add region (and subregion) columns from a country columnadd_region
Annotate a plot with labelled decision bandsannotate_bands
Apply a registered order to a vectorapply_order
Built-in decision-band presetsbands_nps bands_nps_score bands_rating_3 bands_rating_5
Bin a numeric vector into labelled groupsbin_numeric
Show the active brand settingsbrand_info
Driver importancecalc_importance
Net Promoter Scorecalc_nps
Count a categorical question as percentagescalc_percentage
Percentages for a batch of questions at oncecalc_percentage_batch
Tabulate a check-all-that-apply (multi-select) question as percentagescalc_percentage_multi
Summarise a numeric question (mean / median / sd)calc_summary
Tidy an exported column name into a readable labelclean_label
Clear the active brandclear_brand
Delete saved cross-tab checkpointsclear_checkpoints
Forget cached survey weightsclear_weights_cache
Compare a metric between two datasets (e.g. two events or waves)compare_values
Convert amounts between currenciesconvert_currency
Country to region lookupcountry_region
Cross-tabulate two survey questionscrosstab
Build a master banner (cross-tab) tablecrosstab_banner
Currency exchange-rate snapshotcurrency_rates
Survey precision diagnostics for one or more columnsdiagnose
Drop unwanted answer categories from a questiondrop_items
Open the ezrsurvey profile for editingedit_ezrsurvey_profile
Coerce text to numeric, salvaging embedded numbersensure_numeric
Copy the worked example report into a folderexample_report
Export a per-question summary workbook (table + chart per sheet)export_summary_xlsx
Export several tables to one Excel workbook, a tab eachexport_xlsx
Get or set ezrsurvey defaultsezrsurvey_options
Profile file locations ezrsurvey looks inezrsurvey_profile_paths
Generational-cohort definitionsgeneration_scheme
Get, check or clear the default datasetclear_dataset dataset_vars get_dataset has_dataset
Get the levels of a registered orderget_order
Inspect or clear the session weighting schemeclear_weights get_weights has_weights
Build an importance / performance modelipm_model
Percent label formatterlabel_pct
List the currencies in a rate tablelist_currencies
List registered orderslist_orders
Available Quarto report templateslist_report_templates
Load ezrsurvey defaults from a YAML profileload_ezrsurvey_profile
Margin of error from a standard errormargin_of_error
Mark a single value on a plotmark_value
Convert blank and boilerplate non-answers to 'NA'na_blank
Round an axis maximum up to a "nice" valuenice_max
Classify Net Promoter Score answers into groupsnps_group
Find the order that applies to a variableorder_for
Brand colour palettepal_brand
ezrsurvey colour palettespal_neutral pal_nps pal_rating pal_sequential_blue
Split a filename column into metadata columnsparse_filename
Bar chart of a percentage table (auto-laid-out)plot_bars
Diverging bar chart of differencesplot_diff
Stacked score gauges (NPS over average quality, etc.)plot_gauges
Importance / performance matrixplot_ipm
NPS distribution slide (0-10 scale with group labels)plot_nps
Score gauge with decision bands and a value markerplot_nps_gauge
Treemap of selected quotesplot_quotes_tree
A stacked rating chart for a whole block of questionsplot_rating_grid
Stacked rating bars with weighted-average orderingplot_stacked_rating
Simulated pod-racing fan surveypodracing_survey
Plain-language survey precision summaryprecision_summary
Read and stack every CSV in a folderread_folder
Recode age into standard survey bandsrecode_age
Recode age or birth year into a generational cohortrecode_generation
Recode a worded rating scale to integersrecode_likert
Look up the region or subregion for a countryrecode_region recode_subregion
Register a reusable ordinal level orderregister_order
Register a set of common ordinal scalesregister_order_presets
Remove a registered orderremove_order
Add a plot to a reportreport_add_plot
Add a slide (PowerPoint) or heading (Word) to a reportreport_add_slide
Add a table to a reportreport_add_table
Add a paragraph of text to a reportreport_add_text
Build a slide deck from a list of plots and tables in one callreport_deck
List the slide layouts of a PowerPoint templatereport_layouts
Start a new PowerPoint or Word reportreport_new
Save a report to diskreport_save
Add a section-divider slidereport_section
Add a whole slide in one call (title plus its content)report_slide
Add the opening title slidereport_title_slide
Move a band specification onto another scalerescale_bands
Reset all ezrsurvey options to their built-in defaultsreset_ezrsurvey_options
Relative standard errorrse
Rate precision from a relative standard errorrse_rating
Pick a random sample of open-text commentssample_comments
Pick a diverse, information-rich sample of commentssample_comments_diverse
Quick-save a table to CSV, TSV or XLSXsave_data
Save current options and orders to a profilesave_ezrsurvey_profile
Quick-save any ezrsurvey output (plot or table)save_output
Quick-save a plot to PNG, SVG or PDFsave_plot
Scaffold a Quarto survey-report templatescaffold_report
Brand fill and colour scalesscale_color_brand scale_colour_brand scale_fill_brand
NPS group fill scalescale_fill_nps
Rating colour and fill scalesscale_color_rating scale_colour_rating scale_fill_rating
Continuous y-scale capped at a nice maximum with optional percent labelsscale_y_pct
Standard error of a mean (point estimate)se_mean
Standard error of a proportionse_prop
Select identifier and prefixed columnsselect_prefix
Select identifier and suffixed columnsselect_suffix
Set a survey weighting scheme for the sessionset_weights
Simulated historical shopping-behaviour surveyshopping_survey
Split a packed multi-select column into one column per answersplit_multi
ezrsurvey ggplot2 themestheme_ezrsurvey theme_ezrsurvey_x theme_ezrsurvey_xy theme_ezrsurvey_y
Transparent-background theme fragmenttheme_transparent
Adopt an organisation brand from a PowerPoint or Word templateuse_brand
Set a default dataset for the sessionuse_dataset
Create a starter ezrsurvey profileuse_ezrsurvey_profile
Compute the per-respondent survey weightsweight_vector