national_list_url: data url for national master facility lists by country

Description Usage Arguments Value Examples

View source: R/national_list_url.r

Description

returns urls for 'all' available countries or url for a single country

Usage

1
national_list_url(country = "all")

Arguments

country

'all' (default) or a single country name or iso3c character code.

Value

dataframe or single value

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
national_list_url('South Sudan')

#example of reading in data direct from a url and mapping
#will only work for countries where "machine_readable" is TRUE
#dfgha <- read.csv(national_list_url("Ghana"))
#sfgha <- sf::st_as_sf(dfgha, coords=c("Longitude","Latitude"), crs=4326, na.fail=FALSE)
#mapview::mapview(sfgha, zcol='Type')
#afrihealthsites('gha',datasource=sfgha, type_column='Type')
#compare_hs_sources("ghana", datasources=list(sfgha,"who"), type_column='Type')
#3756 facilities from mfl
#facility_types('gha',datasource=sfgha, type_column='Type')
#1878 facilities in who-kemri data
#facility_types('gha',datasource='who', type_column='Type')


#to return a dataframe with all countries that have urls
national_list_url()

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