wpgpGetCountryCovariate: wpgpGetCountryCovariate function will download files and...

Description Usage Arguments Value Examples

Description

wpgpGetCountryCovariate function will download files and return a list with the file paths to the requested covariates for one or more countries

Usage

1
2
3
wpgpGetCountryCovariate(df.user = NULL, ISO3 = NULL, covariate = NULL,
  destDir = tempdir(), username = NULL, password = NULL, quiet = TRUE,
  frCSVDownload = FALSE, method = "auto")

Arguments

df.user

data frame of files to download. Must contain ISO3, Folder, and RstName. If not supplied, must give ISO3, year, and covariate

ISO3

a 3-character country code or vector of country codes. Optional if df.user supplied

covariate

Covariate name(s). Optional if df.user supplied

destDir

Path to the folder where you want to save raster file

username

ftp username to WorldPop ftp server

password

ftp password to WorldPop ftp server

quiet

Download Without any messages if TRUE

frCSVDownload

If TRUE, a new wpgAllCovariates.csv file will downloaded

method

Method to be used for downloading files. Current download methods are "internal", "wininet" (Windows only) "libcurl", "wget" and "curl", and there is a value "auto"

Value

List of files downloaded, including file paths

Examples

1
wpgpGetCountryCovariate(df.user = NULL,'NPL','px_area','G:/WorldPop/','ftpUsername','ftpPassword')

worldpopglobal/wpgpCovariates documentation built on May 24, 2019, 2:07 a.m.