Skip to contents

Print classcodes object

Usage

# S3 method for classcodes
print(x, n = NULL, ...)

Arguments

x

object of type classcodes

n

number of rows to preview (n = 0 is allowed)

...

arguments passed to print method for tibble

Examples

# Default printing
elixhauser
#> 
#> Classcodes object
#>  
#> Regular expressions:
#>    icd10, icd10_short, icd9cm, icd9cm_ahrqweb, icd9cm_enhanced 
#> Indices:
#>    sum_all, sum_all_ahrq, walraven, sid29, sid30, ahrq_mort, ahrq_readm 
#> Hierarchy:
#>    c("metastatic cancer", "solid tumor"),
#>    c("diabetes uncomplicated", "diabetes complicated") 
#> 
#> # A tibble: 31 × 13
#>    group      icd10 icd10…¹ icd9cm icd9c…² icd9c…³ sum_all sum_a…⁴ walra…⁵ sid29
#>    <chr>      <chr> <chr>   <chr>  <chr>   <chr>     <dbl>   <dbl>   <dbl> <dbl>
#>  1 congestiv… I(09… I(09|1… 39891… 39891|… 39891|…       1       1       7     9
#>  2 cardiac a… I(44… I(4[45… 42(6(… NA      42(6([…       1       0       5     8
#>  3 valvular … A520… A52|I(… 0932|… 0932|3… 0932|3…       1       1      -1     0
#>  4 pulmonary… I(2(… I2[678] 41(6|… 41(6|7… 41(5[0…       1       1       4     5
#>  5 periphera… I7([… I7[013… 44(0|… 44([0-… 0930|4…       1       1       2     4
#>  6 hypertens… I10   I10     401[1… 401[19… 401           1       1       0    -2
#>  7 hypertens… I1[1… I1[1-3… 40([2… 40(10|… 40[2-5]       1       1       0    -2
#>  8 paralysis  G(04… G(04|1… 34(2[… 34[2-4… 3(341|…       1       1       7     4
#>  9 other neu… G(1[… G(1[0-… 3(3(1… 3(3([0… 3(3(19…       1       1       6     5
#> 10 chronic p… (I27… I27|(J… 49(([… 49|50(… 4(16[8…       1       1       3     3
#> # … with 21 more rows, 3 more variables: sid30 <dbl>, ahrq_mort <dbl>,
#> #   ahrq_readm <dbl>, and abbreviated variable names ¹​icd10_short,
#> #   ²​icd9cm_ahrqweb, ³​icd9cm_enhanced, ⁴​sum_all_ahrq, ⁵​walraven

# Print attributes data but no data preview
print(elixhauser, n = 0)
#> 
#> Classcodes object
#>  
#> Regular expressions:
#>    icd10, icd10_short, icd9cm, icd9cm_ahrqweb, icd9cm_enhanced 
#> Indices:
#>    sum_all, sum_all_ahrq, walraven, sid29, sid30, ahrq_mort, ahrq_readm 
#> Hierarchy:
#>    c("metastatic cancer", "solid tumor"),
#>    c("diabetes uncomplicated", "diabetes complicated") 
#> 

# Print all rows
print(elixhauser, n = 31)
#> 
#> Classcodes object
#>  
#> Regular expressions:
#>    icd10, icd10_short, icd9cm, icd9cm_ahrqweb, icd9cm_enhanced 
#> Indices:
#>    sum_all, sum_all_ahrq, walraven, sid29, sid30, ahrq_mort, ahrq_readm 
#> Hierarchy:
#>    c("metastatic cancer", "solid tumor"),
#>    c("diabetes uncomplicated", "diabetes complicated") 
#> 
#> # A tibble: 31 × 13
#>    group      icd10 icd10…¹ icd9cm icd9c…² icd9c…³ sum_all sum_a…⁴ walra…⁵ sid29
#>    <chr>      <chr> <chr>   <chr>  <chr>   <chr>     <dbl>   <dbl>   <dbl> <dbl>
#>  1 congestiv… I(09… I(09|1… 39891… 39891|… 39891|…       1       1       7     9
#>  2 cardiac a… I(44… I(4[45… 42(6(… NA      42(6([…       1       0       5     8
#>  3 valvular … A520… A52|I(… 0932|… 0932|3… 0932|3…       1       1      -1     0
#>  4 pulmonary… I(2(… I2[678] 41(6|… 41(6|7… 41(5[0…       1       1       4     5
#>  5 periphera… I7([… I7[013… 44(0|… 44([0-… 0930|4…       1       1       2     4
#>  6 hypertens… I10   I10     401[1… 401[19… 401           1       1       0    -2
#>  7 hypertens… I1[1… I1[1-3… 40([2… 40(10|… 40[2-5]       1       1       0    -2
#>  8 paralysis  G(04… G(04|1… 34(2[… 34[2-4… 3(341|…       1       1       7     4
#>  9 other neu… G(1[… G(1[0-… 3(3(1… 3(3([0… 3(3(19…       1       1       6     5
#> 10 chronic p… (I27… I27|(J… 49(([… 49|50(… 4(16[8…       1       1       3     3
#> 11 diabetes … E1[0… E1[0-4] 250[0… 250[0-… 250[0-…       1       1       0     1
#> 12 diabetes … E1[0… E1[0-4] 250[4… 250[4-… 250[4-…       1       1       0     0
#> 13 hypothyro… E(0[… E(0[0-… 24(3|… 24(3|4… 24(09|…       1       1       0     0
#> 14 renal fai… I(12… I(1[23… 40(3(… 40(3([… 40(3([…       1       1       5     7
#> 15 liver dis… B18|… B18|I(… 070(3… 070([2… 070([2…       1       1      11     7
#> 16 peptic ul… K2[5… K2[5-8] 53([1… 53([1-… 53[1-4…       1       1       0     0
#> 17 AIDS/HIV   B2[0… B2[0-2… 04[2-… 04[2-4] 04[2-4]       1       1       0     0
#> 18 lymphoma   C(8[… C(8[1-… 2(0([… 2(0([0… 2(0([0…       1       1       9     8
#> 19 metastati… C(7[… C(7[7-… 19[6-… 19[6-9] 19[6-9]       1       1      12    17
#> 20 solid tum… C([0… C([01]… 1([4-… 1([4-6… 1([4-6…       1       1       4    10
#> 21 rheumatoi… L94[… L94|M(… 7(010… 7(010|… 446|7(…       1       1       0     0
#> 22 coagulopa… D6([… D6[5-9] 28(6|… 28(6|7… 28(6|7…       1       1       3    12
#> 23 obesity    E66   E66     2780   2780    2780          1       1      -4    -5
#> 24 weight lo… E4[0… E4[0-6… 26[0-… 26[0-3… 26[0-3…       1       1       6    10
#> 25 fluid ele… E(22… E(22|8… 276    276     2(53|7…       1       1       5    11
#> 26 blood los… D500  D50     2800   2800|6… 2800          1       1      -2    -3
#> 27 deficienc… D5(0… D5[0-3] 28(0[… 28(0[1… 28(0[1…       1       1      -2     0
#> 28 alcohol a… F10|… F10|E5… 29(1[… 291[0-… 2(652|…       1       1       0     0
#> 29 drug abuse F1[1… F1[1-6… 292(0… 292(0|… 292|30…       1       1      -7   -11
#> 30 psychoses  F(2[… F(2[02… 29([5… 29([5-… 29(38|…       1       1       0    -6
#> 31 depression F(20… F(20|3… 3(0(0… 3(0(04… 29(6[2…      NA       1      -3    -5
#> # … with 3 more variables: sid30 <dbl>, ahrq_mort <dbl>, ahrq_readm <dbl>, and
#> #   abbreviated variable names ¹​icd10_short, ²​icd9cm_ahrqweb, ³​icd9cm_enhanced,
#> #   ⁴​sum_all_ahrq, ⁵​walraven