Tinderbox v9 Icon

covid([stateStr, countryStr|zipCodeStr], aDate, keywordStr)

Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Last Altered: 

Operator Has Optional Arguments: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Data manipulation  [other Data manipulation operators]


 As at baseline

 [More on optional operator arguments]

covid(zipCodeStr, dateStr, keywordStr)

covid(stateStr, countryStr, aDate, keywordStr)

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

covid(zipCodeStr, aDate, keywordStr)

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 keywordStr argument may be a quoted string with any of the following values:

covid(stateStr, countryStr, aDate, keywordStr)

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.

A Tinderbox Reference File : Automating Tinderbox : Coding : Action Code : Operators : Full Operator List : covid([stateStr, countryStr|zipCodeStr], aDate, keywordStr)