api_coveragedb: REST API for the COVerAGE-DB database

View source: R/api_coveragedb.R

api_coveragedbR Documentation

REST API for the COVerAGE-DB database

Description

COVerAGE-DB is an open-access database that includes cumulative counts of confirmed COVID-19 cases, deaths, tests, and vaccines by age and sex. The main goal of COVerAGE-DB is to provide a centralized, standardized, age-harmonized, and fully reproducible database of COVID-19 data. For more information, visit

Usage

api_coveragedb(port = NULL)

Arguments

port

a numeric value used as a port

Details

This API wraps a custom download performed locally of the database and filters only 'California', 'Utah' and 'New York State' for both sexes ('m' and 'f' in the database).

The API has two parameters which can be filtered:

* region: 'California', 'Utah' and 'New York State' * sex: 'm' and 'f'

This function launches a plumber API in a new R process using 'callr' and return the 'callr' process.

Value

callr result of the individual R process

Author(s)

Jorge Cimentada

Examples


## Not run: 
  live_api <- api_coveragedb()
  live_api$kill()

## End(Not run)


cimentadaj/scrapex documentation built on Jan. 5, 2023, 9:49 p.m.