pop.process: Population processing

Description Usage Arguments Details Examples

View source: R/PopProcess.R

Description

This function processes a raster of human population (counts) to be compatible with the dengue model

Usage

1

Arguments

sgpop

A raster of human population counts

agg

Multiplier for level of aggregation of the raster, defaults to FALSE (0)

Details

Processes performed involve i) making all pixels integer value (so each pixel contains a discrete number of people) ii) if supplied "agg" determines the scale of pixel aggregation, e.g. agg = 10 will convert a raster with pixels sized 100m x 100m to 1000m x 1000m

Examples

1
2
3
4
5
data(sgpop)
sgpop10 <- pop.process(sgpop, agg = 10)
par(mfrow = c(2, 1))
plot(sgpop)
plot(sgpop10)

obrady/SpatialDengue documentation built on Nov. 27, 2020, 12:13 p.m.