knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
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
classlocation
- The name of the location as provided by John Hopkins raw datalocation_type
- The type of the location field, either country
or state
location_code
- The location code, using the ios_3166_2
formatlocation_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 caseslat
- The latitude codelong
- The longitude codelibrary(coronavirus) covid19_df <- refresh_coronavirus_jhu() head(covid19_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.