Learn R Programming

reproducible (version 2.1.2)

studyAreaName: Get a unique name for a given study area

Description

Digest a spatial object to get a unique character string (hash) of the study area. Use .suffix() to append the hash to a filename, e.g., when using filename2 in prepInputs.

Usage

studyAreaName(studyArea, ...)

# S4 method for character studyAreaName(studyArea, ...)

# S4 method for ANY studyAreaName(studyArea, ...)

Value

A character string using the .robustDigest of the studyArea. This is only intended for use with spatial objects.

Arguments

studyArea

Spatial object.

...

Other arguments (not currently used)

Examples

Run this code
studyAreaName("Ontario")

Run the code above in your browser using DataLab