Skip to content
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

Merged
merged 26 commits into from
Feb 14, 2024
Merged

Resolve #83, #84, #173 #174

merged 26 commits into from
Feb 14, 2024

Conversation

mstackhouse
Copy link
Contributor

@mstackhouse mstackhouse commented Feb 7, 2024

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

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.

@mstackhouse mstackhouse changed the title Resolve #84, #173 Resolve #83, #84, #173 Feb 9, 2024
Copy link
Collaborator

@asbates asbates left a 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.

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.
Copy link
Collaborator

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.'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok that's updated.

R/count.R Outdated Show resolved Hide resolved
R/count.R Show resolved Hide resolved
R/desc.R Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants