wpgpGetZonalStats: wpgpGetZonalStats function will download a ZonalStats csv

Description Usage Arguments Value Examples

View source: R/wpgpCovariates.R

Description

wpgpGetZonalStats function will download a ZonalStats csv

Usage

1
2
3
wpgpGetZonalStats(ISO3 = NULL, covariate = NULL, stat = "mean",
  destDir = tempdir(), username = NULL, password = NULL, quiet = TRUE,
  overwrite = TRUE, frCSVDownload = FALSE, method = "auto")

Arguments

ISO3

a 3-character country code

covariate

Covariate name.

stat

Either as character: 'mean', 'min', 'max', 'sum'.

destDir

Path to the folder where you want to save ZonalStats 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 ZonalStats csv file if it already exists

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

dataframe

Examples

1
wpgpGetZonalStats("AGO","ccilc_dst011_2000", stat = "mean" ,"G:/WorldPop/",username="ftpUsername",password="ftpPassword")

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