wpgpGetPOPTable: wpgpGetPOPTable function will download a population csv

Description Usage Arguments Value Examples

View source: R/wpgpCovariates.R

Description

wpgpGetPOPTable function will download a population csv

Usage

1
2
3
wpgpGetPOPTable(ISO3 = NULL, year = NULL, destDir = tempdir(),
  username = NULL, password = NULL, quiet = TRUE, overwrite = TRUE,
  method = "auto")

Arguments

ISO3

a 3-character country code

year

Year of the dataset you would like to download.

destDir

Path to the folder where you want to save poptable file

username

ftp username to WorldPop ftp server

password

ftp password to WorldPop ftp server

quiet

Download Without any messages if TRUE

overwrite

Logical. Overwrite the poptable csv file if it already exists

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

dataframe

Examples

1
wpgpGetPOPTable("AGO",2000,"G:/WorldPop/",username = "ftpUsername",password = "ftpPassword")

wpgp/wpgpCovariates documentation built on May 29, 2019, 11:58 a.m.