near_points: find near points for a country initially in one datasource

Description Usage Arguments Value Examples

View source: R/near_points.r

Description

IN DEVELOPMENT aim is to help identify and remove duplicates

Usage

1
2
3
4
5
6
7
near_points(
  country,
  datasources = c("healthsites", "who"),
  hs_amenity = c("clinic", "doctors", "pharmacy", "hospital"),
  dist_same_m = 50,
  toreturn = "summary"
)

Arguments

country

a character vector of country names or iso3c character codes.

datasources

vector of 2 datasources from 'healthsites' predownloaded, 'who', 'healthsites_live' needs API, 'hdx' not working yet

hs_amenity

filter healthsites data by amenity. 'all', 'clinic', 'dentist', 'doctors', 'pharmacy', 'hospital' to exclude dentist hs_amenity=c('clinic', 'doctors', 'pharmacy', 'hospital')

dist_same_m

distance below which a site from source 1 and 2 is considered same

toreturn

whether to return 'summary' or the merged 'sf' object

Value

sf

Examples

1
#near_points("burundi", datasources=c('who', 'healthsites'), plot='mapview')

afrimapr/afrihealthsites documentation built on June 12, 2021, 11:46 a.m.