risk_unit.Rd
Compute the risk for each of the epidemiological units.
risk_unit(r, eu, fun = mean)
r | RasterLayer object |
---|---|
eu | SpatialPolygons* object |
fun | A summary function. By default the mean. |
numeric vector of the same length as the number of epidemiological units.
Summarises the level of risk using a function such as the mean or median value across the epidemiological unit.
#> Warning: CRS object has comment, which is lost in output