Standard Methods for Use in Public Health Scotland


[Up] [Top]

Documentation for package ‘phsmethods’ version 1.1.0

Help Pages

age_calculate Calculate age between two dates
age_from_chi Extract age from the CHI number
area_lookup Codes and names of Scottish geographical and administrative areas.
as_percent Percentages
chi_check Check the validity of a CHI number
chi_pad Add a leading zero to nine-digit CHI numbers
create_age_groups Create age groups
dob_from_chi Extract Date of Birth (DoB) from the CHI number
extract_fin_year Extract the formatted financial year from a date
format_postcode Format a postcode
match_area Translate geography codes into area names
NA_percent_ Percentages
qtr Assign a date to a quarter
qtr_end Assign a date to a quarter
qtr_next Assign a date to a quarter
qtr_prev Assign a date to a quarter
sex_from_chi Extract sex from the CHI number