Learn R Programming

cycleRtools (version 1.0.0)

download_elev_data: Download geographical elevation data.

Description

Downloads elevation data files to the working directory for use with elevation_correct. Requires package raster to be installed.

Usage

download_elev_data(country = "all")

Arguments

country
character string; the ISO3 country code (see raster::getData("ISO3")) for which to download the data. If "all", then all available data is downloaded - this may take some time.

Value

  • nothing.

See Also

elevation_correct.

Examples

Run this code
# Download elevation data for the UK into the home directory.
setwd("~")
download_elev_data("GBR")

Run the code above in your browser using DataLab