pix.id.find: Match Longitude and Latitude of clusters to pixel IDs in grid

Description Usage Arguments Details Examples

View source: R/PixIdFind.R

Description

This function takes latitude and longitude of identified cases and matched them to a specific identifier from the unipix dataframe

Usage

1
pix.id.find(longlat, unipix)

Arguments

longlat

A two element vector of Longitude followed by Latitude

unipix

A universal lookup table detailing all pixels within the grid. Must contain a pixel ID in the first column and the fields "x" (Longitude) and "y" (Latitude)

Details

uses pixel stepwise distance (Longitude + Latitude) to identify nearest pixel to the given LatLong.

Examples

1
2
3
4
data(sgdat)
data(sgpop)
unipix <- make.unipix(sgpop)
pix.id.find(c(sgdat$Longitude[1], sgdat$Latitude[1]), unipix)

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