Learn R Programming

icd (version 3.3)

expect_chap_equal: expect named sub-chapter has a given range, case insensitive

Description

First checks that the given name is indeed in ver_chaps, and if so, checks whether that entry in ver_chaps matches the given start and end.

Usage

expect_chap_equal(x, start, end, ver_chaps, ...)

expect_icd10_sub_chap_equal(x, start, end, ...)

expect_icd9_sub_chap_equal(x, start, end, ...)

Arguments

x

name of a chapter

start

ICD code

end

ICD code

ver_chaps

list with each member being a start-end pair, and names being the chapter names

...

arguments passed to expect_true in testthat package