RSGInc / travelSurveyTools

An R package to make working with and summarizing household travel survey data easier.
https://rsginc.github.io/travelSurveyTools/
GNU General Public License v3.0
5 stars 1 forks source link

Change how checkboxes function in hts_summary/hts_summary_cat #87

Closed jacobmoore5067 closed 9 months ago

jacobmoore5067 commented 9 months ago

Set defaults for checkbox_valname and checkbox_yesval to 'value' and 1 respectively, and then use summarize_vartype in hts_summary_cat and hts_summary_num to check if we're using a checkbox.

Might also requiring adding a warning about having summarize_vartype = 'checkbox' but checkbox_valname doesn't exist.