find.Dspots: Find detected spots

Description Usage Arguments Details Examples

View source: R/FindDspots.R

Description

Based on the location of detected (symptomatic) infections and a specified radius, identify which patches aroudn their residence will be subject to control activities

Usage

1
find.Dspots(newsingD, pixdistmat, radius)

Arguments

newsingD

Matrix of newly detected dengue infections, row = day of infection when they were detected, col = the patch in which they were detected

pixdistmat

A distance matrix between patches

radius

The radius in meters around the index case's residence that is to be searched

Details

Returns a numeric vector with patch IDs that fall within the specified radius of an index case

Examples

1
2
3
4
5
6
7
data(sgpop)
sgpop <- pop.process(sgpop, agg = 10)
unipix <- make.unipix(sgpop)
pixdistmat <- distm(cbind(unipix$x, unipix$y))
newsingD <- matrix(sample(c(0, 1), nrow(unipix) * 2, prob = c(0.99, 0.01), T), nrow = 2)
radius = 1000
find.Dspots(newsingD, pixdistmat, radius)

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