local_mobility: Extract the mobility table for a specified locality.

Description Usage Arguments Details Value

View source: R/util.R

Description

The mobility data currently in use is the Google mobility data, stored in the va_mobility_daily dataset.

Usage

1
local_mobility(locality, scenario = NULL)

Arguments

locality

Name of the locality to extract

scenario

Future mobility scenario to use. If NULL, then use the base scenario (with mobility constant after the last data point). Otherwise, the name of the future scenario to use.

Details

The mobility dataset has columns for retail, grocery, parks, transit, work, and home categories. (The latter is actually inversely related to mobility, since it represents staying at home.) The default is to use the 'home' column, but this can be changed by setting the option CovMitigation.mobility_column.

Setting the mobility category via an option is manifestly a terrible idea, since the mobility column used is not recorded anywhere in the output. Once we decide which category best captures the effect that we are after, we will set that column as the default and disable the set-by-option capability

Value

A list with two vectors, t and mobility, in that order.


rplzzz/CovMitigation documentation built on June 7, 2021, 8:48 a.m.