Key-Value
key_val.Rd
Create a set of key-value pairs by extracting elements from within a list of named-lists.
Examples
f = system.file("example_data_dictionary.json", package = "iidda")
d = jsonlite::read_json(f)
key_val(d, "name", "type")
#> $location
#> [1] "string"
#>
#> $iso_3166
#> [1] "string"
#>
#> $iso_3166_2
#> [1] "string"
#>
#> $period_start_date
#> [1] "date"
#>
#> $period_end_date
#> [1] "date"
#>
#> $disease_family
#> [1] "string"
#>
#> $disease
#> [1] "string"
#>
#> $icd_9
#> [1] "string"
#>
#> $icd_7
#> [1] "string"
#>
#> $disease_subclass
#> [1] "string"
#>
#> $icd_9_subclass
#> [1] "string"
#>
#> $icd_7_subclass
#> [1] "string"
#>
#> $lower_age
#> [1] "string"
#>
#> $upper_age
#> [1] "string"
#>
#> $sex
#> [1] "string"
#>
#> $cases_this_period
#> [1] "string"
#>
#> $cases_prev_period
#> [1] "string"
#>
#> $cases_cum_report_year
#> [1] "string"
#>
#> $cases_cum_prev_year
#> [1] "string"
#>
#> $cases_median_prev_5_years
#> [1] "string"
#>
#> $cases_cum_median_prev_5_years
#> [1] "string"
#>
#> $population
#> [1] "string"
#>
#> $cause
#> [1] "string"
#>
#> $location_scale
#> [1] "string"
#>
#> $time_scale
#> [1] "string"
#>