downloadNightLights: Download Night Lights data from NOAA

Description Usage Arguments Examples

View source: R/downloadNightLights.R

Description

Download night lights data from NOAA for specific years.

Usage

1
2
downloadNightLights(years, extract = TRUE, directory = NULL,
                    download.method = NULL, ...)

Arguments

years

The years of data to download, e.g. 2000:2002 or c(1992, 2002, 2012). The available years are 1992-2013.

extract

(Logical) Should the downloaded files be extracted from the tarballs? Default is TRUE.

directory

The directory to save the files to. If omitted, it saves to the current directory. If the directory does not yet exist, it will be created.

download.method

Method to use in the download.file button. If not specified it will use internal on Windows and wget otherwise. Extra arguments can also be passed to the download.file function such as extra when needed.

Examples

1
  downloadNightLights(years = c(1992, 2002, 2012), directory = "night-lights")

walshc/nightlights documentation built on May 3, 2019, 11:51 p.m.