Package: reskit 1.0.0

Fran Barton

reskit: Nice selection box of goodies for hobnobbing with NHP model results

'Wafer' goodbye to crumbly code, and dunk a sturdy reskit function in your data cuppa instead. We've clustered the cream of our results code here - it's a cracker!

Authors:Fran Barton [aut, cre], Matt Dray [ctb], Rhian Davies [ctb]

reskit_1.0.0.tar.gz
reskit_1.0.0.zip(r-4.7)reskit_1.0.0.zip(r-4.6)reskit_1.0.0.zip(r-4.5)
reskit_1.0.0.tgz(r-4.6-any)reskit_1.0.0.tgz(r-4.5-any)
reskit_1.0.0.tar.gz(r-4.7-any)reskit_1.0.0.tar.gz(r-4.6-any)
reskit_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
reskit/json (API)

# Install 'reskit' in R:
install.packages('reskit', repos = c('https://the-strategy-unit.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/the-strategy-unit/nhp_reskit/issues

On CRAN:

Conda:

new-hospital-programmenhp-operationalnhp-support

2.93 score 1 scripts 29 exports 87 dependencies

Last updated from:effb6fe1f6. Checks:7 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64ERROR166
source / vignettesOK209
linux-release-x86_64ERROR140
macos-release-arm64ERROR123
macos-oldrel-arm64ERROR130
windows-develERROR91
windows-releaseERROR120
windows-oldrelERROR84
wasm-releaseOK155

Exports:add_change_colscompile_change_factor_datacompile_detailed_activity_datacompile_distribution_plot_datacompile_distribution_summary_datacompile_indiv_change_factor_datacompile_principal_los_datacompile_principal_pod_dataexport_detailed_activity_dataexport_distribution_summary_dataexport_principal_cf_dataexport_principal_los_dataexport_principal_pod_dataget_detailed_podsget_principal_podsget_results_dir_pathget_tpma_label_lookupget_tretspef_lookupget_trust_sitesmake_beeswarm_distrib_plotmake_cumulative_distrib_plotmake_detailed_activity_tablemake_distribution_summary_tablemake_individual_cf_plotmake_overall_cf_plotmake_principal_los_tablemake_principal_pod_tableread_results_parquet_filesshim_results

Dependencies:arrowaskpassassertthatazkitAzureAuthAzureGraphAzureRMRAzureStorbase64encbeeswarmbigDbitbit64bitopsbslibcachemclicommonmarkcpp11curldigestdplyrevaluatefarverfastmapfontawesomeforcatsfsgenericsggbeeswarmggplot2gluegtgtablehighrhtmltoolshtmlwidgetshttrhttr2isobandjosejquerylibjsonlitejuicyjuiceknitrlabelinglifecyclelitedownmagrittrmarkdownmemoisemimeopensslpillarpkgconfigpurrrR6rappdirsRColorBrewerRcppreactablereactRrlangrmarkdownS7sassscalessnakecasestringistringrsystibbletidyrtidyselecttinytexutf8uuidV8vctrsviporviridisLitewithrxfunxml2yamlyaml12yyjsonr

Readme and manuals

Help Manual

Help pageTopics
Add 'change' and 'change_pct' columns to a prepared results tableadd_change_cols
Prepare data from the 'step_counts' results table for display as chartscompile_change_factor_data
Prepare data from the 'sex+age_group' or 'sex+tretspef_grouped' tablecompile_detailed_activity_data
Compile data to support the "activity distribution summary" tablescompile_distribution_plot_data
Compile data to support the "activity distribution summary" tablescompile_distribution_summary_data
Prepare data from 'step_counts' results table for display as chartscompile_indiv_change_factor_data
Prepare data from tretspef+los_group results for displaying as summary tablecompile_principal_los_data
Prepare data from default results table for displaying as summary tablecompile_principal_pod_data
Prepare a site-level summary of detailed activity results by PoD and LoSexport_detailed_activity_data
Prepare a site-level summary of activity distribution summary dataexport_distribution_summary_data
Prepare a site-level summary table of change_factor resultsexport_principal_cf_data
Prepare a site-level summary of main projection results by PoD and LoSexport_principal_los_data
Prepare a site-level summary of main projection resultsexport_principal_pod_data
Prepare a lookup table with activity type labels and PoD labels for each PoDget_detailed_pods get_principal_pods
Return a path to a specific results directoryget_results_dir_path
Get a lookup of TPMA labelsget_tpma_label_lookup
Get a lookup of tretspef codes to descriptionsget_tretspef_lookup
From any results table, get list of all site codes for this schemeget_trust_sites
Generate a "beeswarm" chart showing the distribution of model run valuesmake_beeswarm_distrib_plot
Generate a cumulative distribution function (ecdf) chart of model run valuesmake_cumulative_distrib_plot
Create a gt table with data from compile_detailed_activity_data()make_detailed_activity_table
Create a gt table with data from compile_distribution_summary_data()make_distribution_summary_table
Generate bar charts by change factor at individual TPMA levelmake_individual_cf_plot
Generate overall change factor ("waterfall") chartmake_overall_cf_plot
Create a gt table with data from compile_principal_los_datamake_principal_los_table
Create a gt table with data from compile_principal_pod_datamake_principal_pod_table
Read a selection of (or all) parquet files in an Azure directoryread_results_parquet_files
Wrangle tables from old-style results to match format of new-style resultsshim_results