get_cogs: Compute cognostics for a geographic entity

Description Usage Arguments Examples

View source: R/cogs.R

Description

Compute cognostics for a geographic entity

Usage

1
get_cogs(x, pop, ref_source = NULL)

Arguments

x

A long-format data frame with columns: "date", "cases", "deaths", "source".

pop

Optional population of the geographic entity being plotted (used to populate the "per 100k population" statistics in the card).

ref_source

Which source should be used as the reference (default) source? The reference source is the source with which other sources will be compared. It should match one of the values in the "source" column of the provided data.

Examples

1
get_cogs(wa_cases, ref_source = "NYT")

WorldHealthOrganization/geocard documentation built on Oct. 7, 2020, 5:44 a.m.