Learn R Programming

sorvi (version 0.4.05)

ConvertGADMPosition2Region: Find municipality (kunta), subregion (seutukunta), region (maakunta), or province (laani) for given GADM map coordinates,

Description

Arguments:

Usage

ConvertGADMPosition2Region(coordinates, map = "FIN_adm",
    resolution = "Kunta")

Arguments

coordinates
matrix with columns named 'x' and 'y'. The columns specify x and y coordinates on the GADM map. These will be mapped to region names, with the resolution specified by the resolution parameter. For instance: coordinates <- cbind( x = c(24.9375, 24.
map
Map identifier. When the full GADM-URL has the form "http://gadm.org/data/rda/FIN_adm2.RData", this variable contains the part "FIN_adm". For further map identifiers, see http://gadm.org
resolution
Integer or String. Specifies map resolution. This variable contains the part "4" from the full GADM-URL. to the desired FIN_adm GADM map resolution with the following options: "Maa" (0 / Country); "Maakunta" (2 / Region); "Seutukunta" (3 / Sub

Value

  • A data frame with coordinates, region, province, and municipality information

References

See citation("sorvi")