Description Usage Arguments Value Examples
View source: R/wpgpCovariates.R
wpgpGetCountryCovariate function will download files and return a list with the file paths to the requested covariates for one or more countries
1 2 3 |
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" |
List of files downloaded, including file paths
1 | wpgpGetCountryCovariate(df.user = NULL,'NPL','px_area','G:/WorldPop/','ftpUsername','ftpPassword')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.