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

Add option for numeric proportions #72

Merged
merged 3 commits into from
Dec 15, 2023
Merged

Add option for numeric proportions #72

merged 3 commits into from
Dec 15, 2023

Conversation

joshwlambert
Copy link
Member

This PR addresses #69 by adding a new argument to proportion_*() functions: format_prop. The default behaviour of the function remains the same, formatting the proportions returned in the <data.frame> (format_prop = TRUE), but this argument now allows users to turn off the formatting (format_prop = FALSE) and the proportions column(s) of the output <data.frame> will be numeric.

The design principles vignette is updated explaining the thought behind the added flexibility of output types.

Tests have been added to check the new functionality and the function documentation is also updated.

@joshwlambert joshwlambert added design Updates related to the design of the package enhancement New feature or request labels Dec 15, 2023
@joshwlambert joshwlambert merged commit 04e6a33 into main Dec 15, 2023
8 checks passed
@joshwlambert joshwlambert deleted the num_props branch December 15, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Updates related to the design of the package enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant