Learn R Programming

rdwplus (version 0.1.0)

get_distance: Compute Euclidean distance to a survey site or stream line within a watershed

Description

This function is needed to compute Euclidean distance from a feature of interest in a watershed raster.

Usage

get_distance(target, out, overwrite = FALSE)

Value

Nothing. A file with the name basename(out) will be created in the current GRASS mapset.

Arguments

target

File name of the watershed outlet or streams (as a raster) in the current GRASS mapset.

out

File path for the result to be written.

overwrite

A logical indicating whether the outputs of this function should be allowed to overwrite existing files.