This version is out of date, covering development from v8.0.0 to v8.x.x. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v8 Icon

covid()


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Data manipulation   [other Data manipulation operators]

 8.7.0

 


covid(zip code, date, keyword)

covid(state, country, date, keyword)

The operator covid() returns information about the 2020 pandemic of the COVID-19 virus.

covid(zip code, date, keyword)

Returns the number of cases, deaths, and recoveries reported that day in the US country that contains this zip code. For example

$MyNumber = covid("02148", date(2020,1,4), "cases"); 

This returns the number of cases reported in Middlesex County, Massachusetts for 4 January 2020. The keyword argument may be a quoted string with any of the following values:

covid(state, country, date, keyword)

A four-argument variant allows you to query results by US state:

$MyNumber = covid("MA","US",date(2020,1,4),"recoveries"); 

This returns the number of recoveries reported for the date 4 January 2020, from Massachusetts.

Data Source

Data are as reported by the Johns Hopkins Center For Systems Science and Engineering, and are provided by CovidNearMe.org and are provided strictly for educational and academic research purposes. Please note: data are copyright 2020 Johns Hopkins University.