Description Usage Arguments Value Examples
View source: R/importCovidData.R
Imports data from public Johns Hopkins CSSEGISandData github repo on day-by-day coronavirus confirmed cases, deaths, and recoveries by location
1 | scrapeCovidData(type = "cases")
|
type |
a string representing the type of coronavirus data desired: either "cases" for confirmed cases (default), "deaths" for deaths, or "recovered" for recoveries |
Output is a dataframe with rows representing locations, columns representing dates, values representing the number of cases/deaths/recovered for that location/date combination
1 2 3 4 | scrapeCovidData() # defaults to scrape "cases"
scrapeCovidData("cases")
scrapeCovidData("deaths")
scrapeCovidData("recovered")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.