regionscode: Tool: regionscode

Description Usage Arguments Value Author(s) See Also Examples

View source: R/regionscode.R

Description

Given a regionmapping (mapping between ISO countries and regions) the function calculates a regionscode which is basically the md5sum of a reduced form of the mapping. The regionscode is unique for each regionmapping and can be used to clearly identify a given regionmapping. In addition several checks are performed to make sure that the given input is a proper regionmapping

Usage

1
regionscode(mapping)

Arguments

mapping

Either a path to a mapping or an already read-in mapping as data.frame.

Value

A md5-based regionscode which describes the given mapping

Author(s)

Jan Philipp Dietrich

See Also

fingerprint, digest

Examples

1
2
file <- system.file("extdata","regionmappingH12.csv",package="madrat")
regionscode(file)

madrat documentation built on Dec. 25, 2019, 9:07 a.m.