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.

studyAreaName(studyArea, ...)

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

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

Arguments

studyArea

Spatial object.

...

Other arguments (not currently used)

Value

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

Examples

studyAreaName("Ontario")
#> [1] "f8871845734fa227"