is.icd9: Test presence of ICD classes

Description Usage Arguments Examples

View source: R/class.R

Description

This merely checks whether the given object is a certain type of ICD code, it does no validation of any kind. For validation, see is_valid.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21

Arguments

x

Any object which may have ICD-related classes set

Examples

1
2
3
4
# A character string is not itself an ICD code
is.icd9("100.1")
is_valid("100.1")
is.icd9(as.icd9cm("100.1"))

icd documentation built on July 2, 2020, 4:07 a.m.