side_download: Download a set of SIDE maps

Description Usage Arguments Details

View source: R/side_data.R

Description

Facilitates bulk-download of SIDE data from icr.ethz.ch/side.

Usage

1
2
3
side_download(sideid = c(), mapid = c(), country = c(), year = c(),
  dhs.round = c(), dhs.subround = c(), groupname = c(), marker = c(),
  dest.dir = getwd(), overwrite = FALSE, conv.hull = FALSE)

Arguments

sideid

Vector of sideid as listed in 'side_metadata()'.

mapid

Vector of mapid as listed in 'side_metadata()'.

country

Vector of country names as specified in 'side_metadata()'

year

Vector of country codes as specified in 'side_metadata()'

dhs.round

Vector of DHS rounds as specified in 'side_metadata()'

dhs.subround

Vector of DHS subrounds as specified in 'side_metadata()'

groupname

Vector of group names as specified in 'side_metadata()'

marker

Type of group; one of 'c("ethnic","religion","ethnic.religion")'

dest.dir

Destination directory. If 'conv.hull = TRUE', a subdirectory 'dest.dir/conv_hull/' will be created in which raster files of the convex hulls are saved.

overwrite

Overwrite existing SIDE Data

conv.hull

Download convex hull of DHS points used for interpolation?

Details

Specify the subset of SIDE maps you want to download using the above parameters. The inner join of all parameters determines which maps are downloaded.


carl-mc/sidedata documentation built on Dec. 17, 2019, 9:49 p.m.