Package: phsmethods 1.0.2
phsmethods: Standard Methods for Use in Public Health Scotland
A collection of methods for commonly undertaken analytical tasks, primarily developed for Public Health Scotland (PHS) analysts, but the package is also generally useful to others working in the healthcare space, particularly since it has functions for working with Community Health Index (CHI) numbers. The package can help to make data manipulation and analysis more efficient and reproducible.
Authors:
phsmethods_1.0.2.tar.gz
phsmethods_1.0.2.zip(r-4.5)phsmethods_1.0.2.zip(r-4.4)phsmethods_1.0.2.zip(r-4.3)
phsmethods_1.0.2.tgz(r-4.5-any)phsmethods_1.0.2.tgz(r-4.4-any)phsmethods_1.0.2.tgz(r-4.3-any)
phsmethods_1.0.2.tar.gz(r-4.5-noble)phsmethods_1.0.2.tar.gz(r-4.4-noble)
phsmethods_1.0.2.tgz(r-4.4-emscripten)phsmethods_1.0.2.tgz(r-4.3-emscripten)
phsmethods.pdf |phsmethods.html✨
phsmethods/json (API)
NEWS
# Install 'phsmethods' in R: |
install.packages('phsmethods', repos = c('https://public-health-scotland.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/public-health-scotland/phsmethods/issues
Pkgdown site:https://public-health-scotland.github.io
- area_lookup - Codes and names of Scottish geographical and administrative areas.
Last updated 4 months agofrom:d816bede82. Checks:4 OK, 5 NOTE. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 19 2025 |
R-4.5-win | OK | Mar 19 2025 |
R-4.5-mac | OK | Mar 19 2025 |
R-4.5-linux | OK | Mar 19 2025 |
R-4.4-win | NOTE | Mar 19 2025 |
R-4.4-mac | NOTE | Mar 19 2025 |
R-4.4-linux | NOTE | Mar 19 2025 |
R-4.3-win | NOTE | Mar 19 2025 |
R-4.3-mac | NOTE | Mar 19 2025 |
Exports:age_calculateage_from_chiage_groupchi_checkchi_padcreate_age_groupsdob_from_chiextract_fin_yearfile_sizefin_yearformat_postcodematch_areapostcodeqtrqtr_endqtr_nextqtr_prevsex_from_chi
Dependencies:bitbit64clicliprcolorspacecpp11crayondplyrfansifarvergenericsgluehmslabelinglifecyclelubridatemagrittrmunsellpillarpkgconfigprettyunitsprogressR6RColorBrewerreadrrlangscalesstringistringrtibbletidyselecttimechangetzdbutf8vctrsviridisLitevroomwithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Calculate age between two dates | age_calculate |
Extract age from the CHI number | age_from_chi |
Codes and names of Scottish geographical and administrative areas. | area_lookup |
Check the validity of a CHI number | chi_check |
Add a leading zero to nine-digit CHI numbers | chi_pad |
Create age groups | create_age_groups |
Extract Date of Birth (DoB) from the CHI number | dob_from_chi |
Extract the formatted financial year from a date | extract_fin_year |
Calculate file size | file_size |
Format a postcode | format_postcode |
Translate geography codes into area names | match_area |
Assign a date to a quarter | qtr qtr_end qtr_next qtr_prev |
Extract sex from the CHI number | sex_from_chi |