Standard Methods for Use in Public Health Scotland
Check the validity of a CHI number
Add a leading zero to nine-digit CHI numbers
Calculate age between two dates
Extract age from the CHI number
Create age groups
Extract Date of Birth (DoB) from the CHI number
Extract the formatted financial year from a date
Calculate file size
Format a postcode
Check that a set of arguments inherits from a set of classes Throws an...
Translate geography codes into area names
phsmethods package
Assign a date to a quarter
Functions renamed in phsmethods 0.2.1 (Dec 2021)
Extract sex from the CHI number
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.
Useful links