Skip to contents

Get time series stringency index data from JSON

Usage

get_data_time(json)

Arguments

json

A JSON string, URL or file created using get_json_time()

Value

A tibble of time series stringency index data

Examples

x <- get_json_time(from = "2020-07-18", to = "2020-07-20")

get_data_time(x)
#> # A tibble: 552 × 9
#>    date_value country_code country_name       confirmed deaths stringency_actual
#>    <date>     <chr>        <chr>                  <int>  <int>             <dbl>
#>  1 2020-07-18 ABW          Aruba                    111      3              47.2
#>  2 2020-07-18 AFG          Afghanistan            35375   1151              78.7
#>  3 2020-07-18 AGO          Angola                   687     29              76.4
#>  4 2020-07-18 ALB          Albania                 4008    111              63.0
#>  5 2020-07-18 AND          Andorra                  880     52              41.7
#>  6 2020-07-18 ARE          United Arab Emira…     56711    338              56.5
#>  7 2020-07-18 ARG          Argentina             122524   2220              92.6
#>  8 2020-07-18 AUS          Australia              11802    122              68.1
#>  9 2020-07-18 AUT          Austria                19358    831              38.0
#> 10 2020-07-18 AZE          Azerbaijan             27133    349              96.3
#> # ℹ 542 more rows
#> # ℹ 3 more variables: stringency <dbl>, stringency_legacy <dbl>,
#> #   stringency_legacy_disp <dbl>