icd_age_group10: Cut age into ten age groups

Description Usage Arguments Value Examples

View source: R/icd_utils.R

Description

Cut age into ten age groups

Usage

1

Arguments

data

input data

age

age as continuous variable

Value

return an additional age_group10 fields of ten age intervals

Examples

1
2
3
4
5
6
library(dplyr)
library(classInt)
set.seed(10)
dat <- tibble(age = sample(c(1:100, NA), 110, replace = TRUE))
dat <- dat %>% icd_age_group10(age = age)
dat

epinotes/useicd10cm documentation built on Oct. 18, 2021, 2:33 a.m.