check_reported_strata_against_spatial_poly: check_reported_strata_against_spatial_poly

Description Usage Arguments Value

View source: R/check_reported_strata_against_spatial_poly.R

Description

check_reported_strata_against_spatial_poly

Usage

1
2
3
4
5
6
7
8
check_reported_strata_against_spatial_poly(
  dataset,
  strata_poly,
  dataset_coordinates = c("X_gps_reading_longitude", "X_gps_reading_latitude"),
  dataset_strata_name,
  poly_strata_name,
  cols_to_report = c("X_uuid", "enumerator_id")
)

Arguments

dataset

data set with coordinates

strata_poly

polygon (converted to sf object) which defines strata (administrative unit, camp boundary, etc.)

dataset_coordinates

columns in dataset with hold longitude latitude in that order. default is c("X_gps_reading_longitude" , "X_gps_reading_latitude")

dataset_strata_name

column name which hold the strata in the datset

poly_strata_name

column which hold the strata in the polygon file

cols_to_report

columns which you want to report along with mismatched strata. default is c("X_uuid","enumerator_id")

Value

dataframe where strata reported in dataset do not match strata in spatial admin file according to coordinates in data set


zackarno/butteR documentation built on May 8, 2021, 4:50 p.m.