icd_is_valid_major: Test whether an ICD code is major

Description Usage Arguments Value Methods (by class)

View source: R/valid.R

Description

Codes without real or implied decimal place return TRUE

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Default S3 method:
icd_is_valid(x, short_code = icd_guess_short(x), ...)

icd_is_valid_major(x, whitespace_ok = TRUE)

## Default S3 method:
icd_is_valid_major(x, whitespace_ok = TRUE)

## S3 method for class 'icd9'
icd_is_valid_major(x, whitespace_ok = TRUE)

## S3 method for class 'icd10'
icd_is_valid_major(x, whitespace_ok = TRUE)

icd9_is_valid_major_n(x, whitespace_ok = TRUE)

icd9_is_valid_major_v(x, whitespace_ok = TRUE)

icd9_is_valid_major_e(x, whitespace_ok = TRUE)

Arguments

x

vector of ICD codes

Value

logical vector of same length as input, with TRUE when a code is a major (not necessarily a real one)

Methods (by class)


icd documentation built on May 30, 2017, 1:48 a.m.

Search within the icd package
Search all R packages, documentation and source code