-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve #83, #84, #173 #174
Conversation
Merge branch 'gh_issue_84' into gh_issue_83 # Conflicts: # R/nested.R # R/sort.R # R/zzz.R
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple comments on some working in a vignette.
Other than that it looks good to me.
vignettes/denom.Rmd
Outdated
kable() | ||
``` | ||
|
||
In the example above, we produce a nested count layer. Using the function `add_missing_subjects_row()`. This triggers the addition of the new result row for which the missing subjects are calculated. The row label applied for this can be configured using `set_missing_subjects_row_label()`, and the row label itself will default for Missing. Depending on your sorting needs, a `sort_value` can be applied to whatever numeric value you provide. Lastly, you can provide an `f_str()` to format the missing subjects row separately from the rest of the layer, but whatever format is applied to the layer will apply otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... nested count layer. The function add_missing_subjects_row()
triggers the addition ...
... default for Missing. -> ... default to 'Missing.'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok that's updated.
Types of changes
This PR adds the new function
set_limit_data_by()
to address #84. Along the way, a pre-existing bug (#173) was found and this PR resolves that issue as well and adds tests to catch it in the future.The last push also includes updates for #83. Note there are a few warnings coming out of
test-count.R
, but those should be resolved by #167 which removes the chunk of code from which is warnings are emanating.