Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Access COVID-19 epidemic data
ResourceFunction["COVID19EpidemicData"][location] returns an association of the most recent COVID-19 data for location. | |
ResourceFunction["COVID19EpidemicData"][location,property] returns the most recent value for property. | |
ResourceFunction["COVID19EpidemicData"][location,dateInterval] returns data for the specified dateInterval. | |
ResourceFunction["COVID19EpidemicData"][location,dateInterval,property] returns a time series for the given dateInterval and property. | |
ResourceFunction["COVID19EpidemicData"][location,date,property] returns the nearest available value for property on or before the given date. |
Get an Association with the most recent values of all properties for a given country:
In[1]:= | ![]() |
Out[1]= | ![]() |
Get an Association with the most recent values of all properties for a given US state:
In[2]:= | ![]() |
Out[2]= | ![]() |
Get an Association with a time series for each property for a given country:
In[3]:= | ![]() |
Out[3]= | ![]() |
Get an Association with a time series for each property for a given US state:
In[4]:= | ![]() |
Out[4]= | ![]() |
Get data corresponding to a given date interval for a given country:
In[5]:= | ![]() |
Out[5]= | ![]() |
Get data corresponding to a given date interval for a given US state:
In[6]:= | ![]() |
Out[6]= | ![]() |
Get and plot the time series for a given country and property:
In[7]:= | ![]() |
In[8]:= | ![]() |
Out[8]= | ![]() |
Get the most recent value for a given property:
In[9]:= | ![]() |
Out[9]= | ![]() |
Get and plot the time series for a given property and date interval:
In[10]:= | ![]() |
Out[10]= | ![]() |
Get the nearest available value for a property at or before the given date:
In[11]:= | ![]() |
Out[11]= | ![]() |
COVID19EpidemicData can accept a standard name instead of a geographic entity to specify location:
In[12]:= | ![]() |
Out[12]= | ![]() |
In[13]:= | ![]() |
Out[13]= | ![]() |
Entity["Country","World"] or its string standard name can be used in place of a geographic entity to get the most recent values for a given property:
In[14]:= | ![]() |
Out[14]= | ![]() |
The correct standard name should be used when the geographic entity is given as a String:
In[15]:= | ![]() |
Out[15]= | ![]() |
In[16]:= | ![]() |
Out[16]= | ![]() |
Only countries or US states are accepted entities:
In[17]:= | ![]() |
Out[17]= | ![]() |
This function returns Missing["NotAvailable"] if the geographic entity is not part of the COVID-19 Epidemic Data dataset in the Wolfram Data Repository:
In[18]:= | ![]() |
Out[18]= | ![]() |
DateObject and DateInterval inputs must be contained within the start and end dates of the overall dataset:
In[19]:= | ![]() |
Out[19]= | ![]() |
Show the distribution of confirmed cases over the United States:
In[20]:= | ![]() |
Out[20]= | ![]() |
Show the distribution of deaths over all countries:
In[21]:= | ![]() |
Out[21]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License