Skip to contents

Return a table of variables and their descriptions

Usage

descriptions(dataset, year)

Arguments

dataset

The dataset (currently only supporting NIS).

year

The dataset year.

Value

A tibble consisting of the variable names and their descriptions.

Examples

# The descriptions for the first 5 variables
var_desc <- descriptions("nis", 2019)
head(var_desc, 5)
#> # A tibble: 5 × 2
#>   variable    labels                                            
#>   <chr>       <chr>                                             
#> 1 AGE         Age in years at admission                         
#> 2 AGE_NEONATE Neonatal age (first 28 days after birth) indicator
#> 3 AMONTH      Admission month                                   
#> 4 AWEEKEND    Admission day is a weekend                        
#> 5 DIED        Died during hospitalization