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

Replace list_distributions() with parameter_tbl() #321

Merged
merged 11 commits into from
May 28, 2024
Merged

Conversation

joshwlambert
Copy link
Member

This PR addresses #227 and #245 by replacing the list_distributions() function with parameter_tbl(). This should be a more intuitive function name for those looking to get a table of the parameters in the {epiparameter} database. The <data.frame> returned by parameter_tbl() now also includes the sample size for the parameter entry (#227) and the pathogen (#245).

The table output by parameter_tbl() is of the class <p_tbl>, which wraps the <tbl> class from the {pillar} package, itself a subclass of <data.frame>, this is to utilise the nicer printing of <data.frame>s offered by the {pillar} package (used by {tibble}). This requires taking on {pillar} as a package dependency.

The README has been updated to include an example of the parameter_tbl() function.

Tests and documentation have been updated where relevant.

@joshwlambert joshwlambert added the enhancement New feature or request label May 28, 2024
@joshwlambert joshwlambert merged commit 20a69fc into main May 28, 2024
10 checks passed
@joshwlambert joshwlambert deleted the parameter_tbl2 branch May 28, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants