ita_prepare_covar_elevation: Prepare covariate: Elevation

Description Usage Arguments Value

Description

Covariate-specific prep function for elevation by location. Specifically, this aggregated covariate represents the population-weighted mean elevation inhabited by residents of each province.

Usage

1
ita_prepare_covar_elevation(covar_fp, pop_raster, polys_sf, projection)

Arguments

covar_fp

Filepath to the raw covariate

pop_raster

[optional] Population rasterBrick object, with one layer per modeling year. Only used to prepare raster covariates, default NULL.

polys_sf

[optional] Polygon boundaries

projection

[optional] Character vector giving the proj4 CRS definition. Example: "+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs"

Value

A list of two items: - "prepped_covar": data.table containing the prepped covariate - "covar_indices": Vector of identifiers that should be used to merge onto the modeling dataset. The prepared covariate dataset should only include identifier columns and the covariate value, specified by the covariate name


njhenry/covidemr documentation built on Feb. 2, 2022, 2:31 a.m.