create_sp: Create sp class versions of datasets

Description Usage Arguments Value Examples

View source: R/12-create_sp.R

Description

Create sp class versions of datasets

Usage

1
create_sp(df, coords, by.x = "eid", by.y = "EFEACODE", proj)

Arguments

df

A data.frame of recoded indicator values for the Liberia Coverage Survey

coords

A data.frame containing per enumeration area centroid coordinates

by.x

A character value for variable in df to use for matching with coords for merging

by.y

A character value for variable in coords to use for matching with df for merging

proj

A projection string of class CRS

Value

An 'sp' class version of datasets

Examples

1
2
create_sp(df = coverageData.r2, coords = sampleList.r2,
          proj = sp::CRS(sp::proj4string(gmHexGrid)))

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