Description Usage Arguments Value Examples
View source: R/14-interpolate_indicators.R
Function to interpolate indicators from the Liberia Coverage Survey
1 2 3 4 5 6 7 8 | interpolate_indicators(
indicator = c("ifaDF", "iycfDF", "mnpDF", "vitDF", "screenDF", "anthroDF", "cmamDF"),
county,
core.columns = c("spid", "cid", "did", "eid", "motherID", "m2"),
coords,
hexgrid,
idp = 2
)
|
indicator |
A character vector of indicator data.frame names |
county |
An integer indicating which county to interpolate; 1 for Greater Monrovia; 2 for Grand Bassa |
core.columns |
A vector of variable names included in indicator data.frames |
coords |
A data.frame containing per enumeration area centroid coordinates |
hexgrid |
A SpatialPoints class object containing locations of interpolation |
idp |
Inverse distance power. Default is 2. |
A data.frame as long as 'hexgrid' containing interpolated indicator values at each location of 'hexgrid'
1 2 3 4 | interpolate_indicators(indicator = "vitDF",
county = 1,
coords = sampleList.r2[ , c("EFEACODE", "lon", "lat")],
hexgrid = gmHexGrid)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.