# Covid19R Project Data Format

The `refresh_coronavirus_jhu` function enables to pull the `coronavirus` dataset using the Covid19R project data format standard. This data format includes the following fields:

- `date` - The date of the observation, using `Date` class
- `location` - The name of the location as provided by John Hopkins raw data
- `location_type` - The type of the location field, either `country` or `state`
- `location_code` - The location code, using the `ios_3166_2` format
- `location_code_type` - The location code type (`ios_3166_2`)
- `data_type` - The case type, `c("recovered_new", "cases_new", "deaths_new" )`
- `value` - The number of cases
- `lat` - The latitude code
- `long` - The longitude code

    library(coronavirus)

    covid19_df <- refresh_coronavirus_jhu()

    head(covid19_df)
    #>         date    location location_type location_code location_code_type
    #> 1 2020-07-26 Afghanistan       country            AF         iso_3166_2
    #> 2 2020-05-17 Afghanistan       country            AF         iso_3166_2
    #> 3 2020-07-26 Afghanistan       country            AF         iso_3166_2
    #> 4 2020-04-28 Afghanistan       country            AF         iso_3166_2
    #> 5 2020-04-24 Afghanistan       country            AF         iso_3166_2
    #> 6 2020-04-25 Afghanistan       country            AF         iso_3166_2
    #>       data_type value      lat     long
    #> 1 recovered_new   387 33.93911 67.70995
    #> 2     cases_new   262 33.93911 67.70995
    #> 3    deaths_new    11 33.93911 67.70995
    #> 4     cases_new   125 33.93911 67.70995
    #> 5     cases_new    72 33.93911 67.70995
    #> 6     cases_new   112 33.93911 67.70995