View source: R/summary.classcodes.R
summary.classcodes | R Documentation |
Classification schemes are formalized by regular expressions within the classcodes objects. These are computationally effective but sometimes hard to interpret. Use this function to list all codes identified for each group.
## S3 method for class 'classcodes' summary(object, coding, ..., cc_args = list()) ## S3 method for class 'summary.classcodes' print(x, ...)
object |
classcodes object |
coding |
either a vector with codes from the original classification, or a name (character vector of length one) of a keyvalue object from package "decoder" (for example "icd10cm" or "atc") |
... |
|
cc_args |
List of named arguments passed to |
x |
output from |
Methods primarily called for their side effects (printing to the screen) but with additional invisible objects returned:
summary.classcodes()
: list with input arguments object
and coding
unchanged, as well as a data frame (summary
) with columns for groups
identified (group
); the number of codes to be recognized for each group
(n
) and individual codes within each group (codes
).
print.summary.classcodes()
: argument x
unchanged
Other classcodes:
all_classcodes()
,
as.data.frame.classified()
,
classcodes
,
codebook()
,
print.classcodes()
,
print.classified()
,
set_classcodes()
,
visualize.classcodes()
# summary.classcodes() ---------------------------------------------------- # Summarize all ICD-10-CM codes identified by the Elixhauser # comorbidity classification # See `?decoder::icd10cm` for details summary(elixhauser, coding = "icd10cm") # Is there a difference if instead considering the Swedish ICD-10-SE? # See `?decoder::icd10se` for details summary(elixhauser, coding = "icd10se") # Which ICD-9-CM diagnostics codes are recognized by Charlson according to # Brusselears et al. 2017 (see `?charlson`) summary( charlson, coding = "icd9cmd", cc_args = list(regex = "icd9_brusselaers") ) # print.summary.classcodes() ---------------------------------------------- # Print all 31 lines of the summarized Elixhauser classcodes object print( summary(elixhauser, coding = "icd10cm"), n = 31 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.