Skip to contents

All functions

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.
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
file_size()
Calculate file size
format_postcode()
Format a postcode
match_area()
Translate geography codes into area names
qtr() qtr_end() qtr_next() qtr_prev()
Assign a date to a quarter
sex_from_chi()
Extract sex from the CHI number