Learn R Programming

icd (version 3.3)

classes_ordered: prefer an order of classes

Description

The order of classes can matter because, for some functions, we'd prefer to decide what to do based on a higher level structure, e.g. whether the structure is a comorbidity map before caring if it is ICD-9 or ICD-10. I can't see how it matters whether we prioritize long/wide and short/decimal yet, so won't test.

Usage

classes_ordered(x)

expect_classes_ordered(x)

Arguments

x

any object which may or may not have classes from this package

Functions

  • expect_classes_ordered: testthat expect function for ICD classes to be in correct order.