wpgpGetZonalStats: wpgpGetZonalStats function will download a ZonalStats csv

Description Usage Arguments Value Examples

Description

wpgpGetZonalStats function will download a ZonalStats csv

Usage

1
2
3
wpgpGetZonalStats(ISO3 = NULL, covariate = NULL, stat = "mean",
  destDir = tempdir(), quiet = TRUE, overwrite = TRUE,
  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

quiet

Download Without any messages if TRUE

overwrite

Logical. Overwrite the ZonalStats 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
wpgpGetZonalStats(ISO3="ABW", covariate="esaccilc_dst011_100m_2000", destDir="E:/WorldPop/", stat="mean")

wpgp/wpgpDownloadR documentation built on May 31, 2019, 5:43 a.m.