ConvertGADMPosition2Region: Find municipality (kunta), subregion (seutukunta), region...

Description Usage Arguments Value Author(s) References

Description

Arguments:

Usage

1
2
  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.0722), y = c(60.1783, 61.4639))

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-Region); "Kunta" (4 / Municipality)

Returns:

Value

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

Author(s)

Leo Lahti sorvi-commits@lists.r-forge.r-project.org

References

See citation("sorvi")


sorvi documentation built on May 2, 2019, 6:16 p.m.