interpolate_indicators: Function to interpolate indicators from the Liberia Coverage...

Description Usage Arguments Value Examples

View source: R/14-interpolate_indicators.R

Description

Function to interpolate indicators from the Liberia Coverage Survey

Usage

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
)

Arguments

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.

Value

A data.frame as long as 'hexgrid' containing interpolated indicator values at each location of 'hexgrid'

Examples

1
2
3
4
interpolate_indicators(indicator = "vitDF",
                       county = 1,
                       coords = sampleList.r2[ , c("EFEACODE", "lon", "lat")],
                       hexgrid = gmHexGrid)

validmeasures/liberiaData documentation built on Dec. 2, 2020, 3:32 a.m.