Description Usage Arguments Value See Also Examples
View source: R/example_analysis__hes_ip.R
Create age band looks for aa and esp
1 2 | create_lu_ageband(style = c("alcohol", "smoking", "generic", "ucs"),
name = NULL)
|
style |
(character) choose label foramtting and breaks (alcohol, smoking, generic - 5 year agebands to 95+) |
name |
(character) choose field name |
(data.frame) with fields age, ab, ab_style ab optionally renamed)
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
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.