Releases: y2analytics/y2clerk
v0.6.0
Breaking changes
freqs
- When freqs was run on a factor variable in the past, the "value" column would pull the character labels even when the factor had underlying numbers. This version of y2clerk updates freqs to be more consistent with other types of haven labelled variables and pulls the underlying numbers of factor variables for use in the value column.
New arguments
freqs
- show_missing_levels: whether to keep response levels with no data (default: TRUE). For example, set to TRUE if you know no one answered "very dissatisfied" on a scale, but you still want that empty level of the scale present in the output of freqs.
New function
to_haven_y2
- Convert a factor variable or a character variable to a haven labelled variable
v0.5.4
Release includes newer function multi_freqs and bug fixes
Tagging this version in preparation for coming breaking changes
cross_freqs
Added a new function: cross_freqs for running pseudo cross tabs in R
verbatims_y2 tidyselect
- Incorporate tidyselect into verbatims_y2
- Testing related to tidyselect verbatims_y2
- Namespace automatically generated by roxygen
- Deprecation of unused functions - freqs_mean
- Explicit package references
- Internal bug fixes related to dplyr 1.0.0
- Update of package versions
verbatims_y2
Added a new function, verbatims_y2 for open-ended questions. This function creates a data frame formatted for internbot of all open-ended responses for the input variables.
Added Mean and Quantile Features
Added the 'mean' and 'quantile' options to the freqs function. Along with the quantile option, added a new argument pr. If stat == 'quantile', then pr is used to tell what percentile/quantile you wish to see for that variable.
Also fixed a bug where freqs stopped printing.
Bug fix
Fixes the grouping issue introduced by recent release.
Incremental fix
This updates y2clerk
to take advantage of the new dplyr
feature tallying empty factor levels.
New hotness
This version breaks the old dataframe format to prepare the way for the future of the freqs
command, which could include statistics beyond just percentages. This also includes a new, tidier interface that makes it easy to select which columns to run frequencies on.
Legacy freqs command for code prior to 2019.
This preserves the freqs
command as it functioned prior to 2019.