add_anti_join()
functionadd_missing_subjects()
function set_limit_data_by()
functionadd_layer()
collapse_row_labels()
functionreplace_leading_whitespace()
post-processing functionapply_conditional_formats()
, str_extract_fmt_group()
and str_extract_num()
where
logic when using population data.modify_nested_call()
fails if Tplyr is not loaded (#95)set_numeric_threshold()
apply_formats()
#57str_indent_wrap()
for hyphen-enabled string wrapping #59all.equal
check between
target and pop_data to error.keep_levels()
you can define what factors you want to
keep in your count layers without having to recode/drop factors at the table
level.set_denoms_by()
has been enhanced for nested count layers. You can now your
nested count target variables as denominators.
Bug fixes
add_risk_difference()
would error out when you used it in a nested count
layer that had a character value as the first variable.bycount
if the layer level where
logic caused a value to be droped. This was fixed and tested for future
development.by
variable indicies was changed from N -> factor -> alphabetical to factor -> N -> alphabetical to allow users to override variables that have N counterparts that might have additional values not present in the target.You can now use text strings as the first variable in nested count.
Bug Fixes
Improved error messages and error handling in some places.
Other changes
set_missing_count()
interface was made more intuitive. A new argument denom_ignore
was added.set_denom_ignore()
is now defunct. It was replaced with the denom_ignore
argument in set_missing_count()
add_total_row()
now uses the count_missing
argument and will no longer have any side effects on the denominators.set_denom_where()
is now usable by shift layers.tibble
3.0.4 that caused factors to be displayed incorrectly in row labels and sorting columns to populate incorrectly.A bug where the factors used in the shift layers wouldn't be reflected in the ordering columns.
Enhancements
add_total_row()
interface has been updated. It now takes an f_str object can be formatted differently than the rest of the table. A parameter was also added note if total rows should include missing counts.set_missing_count()
interface was updated. The 'string' parameter was removed and replaced with the ellipsis. Instead of passing a vector, a user would pass any number of character vectors that are named.denom_ignore
is used but no missing count strings are specified.A new function, set_denom_where()
was added to allow a user to change how the denominators are filtered when calculating percentages.
Other changes
Fixes a bug where "Totals" in numeric data may not take into account the where logic at the layer level and thus give inaccurate percentages
Other Changes
add_total_row()
function is more intuitive. It now uses the denoms_by
variables to determine how to calculate the totals.Fixes a bug where 'N' counts in column headers would display as 0 when a distinct_by and custom groupings were used.
Other Changes
Initial release onto CRAN.
by
variablecols
argument is usedget_numeric_data
and the new function get_statistics_data
to get risk difference raw numbers. Data may also be filtered directly from both functions. Beta release for Tplyr with introduction of numerous new features:
General updates:
- Calculate your header N counts based on
the population dataset or the target dataset. The alpha release had an
option to set the population data but this wasn’t actually used anywhere
in the internals.
- Use these header N counts as token replacements when
using the add_column_headers
function.
- Order variables are now added
to the built dataset to allow you to sort the output dataset as you wish
with numeric variables.
- Count layer updates:
- Optionally use the
population data N counts as denominators for percent calculation.
- For multi-level count summaries, nest the row label columns together to
present both row labels in a single column
- You can now present both distinct and non-distinct counts instead of one or
the other
- Sorting options allow you to order results from the target variable values or
from derived counts within a specified column
- Risk difference calculations can now be added as additional columns, with
flexible options for presentation
- Descriptive statistics layer updates:
- The custom summary functionality has
been updated to apply to multi-variable summaries, which results in an interface
change
- Automatic decimal precision has been added to allow you to base the
presentation on the precision of the data as collected
Initial alpha release of Tplyr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.