Description Usage Arguments Value Examples
Pivots the data frame to make one row per location/date combo
1 | tidyCovidData(covid_df, covid_df_name)
|
covid_df |
a time-series dataframe of the type scraped from JHUCSSEGISandData github repo (columns for dates, rows for locations) |
covid_df_name |
a character string representing the type of coronavirus data: ie either "cases", "deaths", or "recovered" |
Output is a dataframe with columns for province, region, lat, long, date, value, and value_type
1 2 | tidyCovidData(scrapeCovidData("cases"), "cases")
tidyCovidData(scrapeCovidData("deaths"), "deaths")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.