get_regions_with_most_reports: Get Regions with Most Reported Cases

View source: R/get.R

get_regions_with_most_reportsR Documentation

Get Regions with Most Reported Cases

Description

[Stable] Extract a vector of regions with the most reported cases in a set time window.

Usage

get_regions_with_most_reports(data, time_window = 7, no_regions = 6)

Arguments

data

A ⁠<data.frame>⁠ of confirmed cases (confirm) by date (date), and region (region).

time_window

Numeric, number of days to include from latest date in data. Defaults to 7 days.

no_regions

Numeric, number of regions to return. Defaults to 6.

Value

A character vector of regions with the highest reported cases


EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.