- fix bug which lead to explicitly missing factor levels still being included in the "valid percent" column.
- replace deprecated
forcats::fct_explicit_na
withforcats::fct_na_value_to_level
- require at least forcats v1.0.0
- rows are explicitly rearranged by x and z in wide 3-way crosstabs
- weights of 0 are removed prior to calculation of the design effect
- an error is now given in all table-creating functions if the weight variable includes NA values
- crosstab functions now include an option to include a column with unweighted frequencies. currently it is not available for column percents.
- a bug is fixed that gave an error in
crosstab(..., pct_type = "col", format = "wide", n = FALSE)
crosstab_3way
now places the n column at the end of the dataframe, consistent withcrosstab
- fix bug in
moe_crosstab
&moe_crosstab_3way
that reported unweighted n in place of weighted n
- pollster now depends on the most recent version of tidyr (1.1.0) because it uses the argument
names_sort = TRUE
to ensure thattidyr::pivot_wider
arranges rows and columns in the order of their factor levels.
- improvements to how crosstab functions conditionally convert factor to date class. This includes removing the lubridate dependency.
- crosstab functions now convert factors in crosstabs to numeric values when all values are numeric
- crosstabs now show a value of 0% instead of NA when there are no values.
- add CRAN installation to readme
- package accepted by CRAN on 03/25/2020