create_lu_ageband: Create age band looks for aa and esp

Description Usage Arguments Value See Also Examples

View source: R/example_analysis__hes_ip.R

Description

Create age band looks for aa and esp

Usage

1
2
create_lu_ageband(style = c("alcohol", "smoking", "generic", "ucs"),
  name = NULL)

Arguments

style

(character) choose label foramtting and breaks (alcohol, smoking, generic - 5 year agebands to 95+)

name

(character) choose field name

Value

(data.frame) with fields age, ab, ab_style ab optionally renamed)

See Also

Other examples_of_analysis: ab_labels_from_breaks, create__dummy_hesip, create_lu_gender, examples_of_analysis, gen_codes, main__example_analysis__aa_morbidity, main__example_analysis__ac_morbidity, main__example_analysis__sa_morbidity, main__example_analysis__uc_morbidity, main__examples_analysis, ricd10

Examples

1
2
3
require("dplyr")
aafractions.ncc:::create_lu_ageband() %>% mutate_if(is.character, as.factor) %>% summary(20)
aafractions.ncc:::create_lu_ageband() %>% select(starts_with("ab_")) %>% unique()

ianbatesncc/aafractions.ncc documentation built on May 3, 2019, 3:34 p.m.