Description Usage Arguments Value Author(s) References
Arguments:
1 2 | ConvertGADMPosition2Region(coordinates, map = "FIN_adm",
resolution = "Kunta")
|
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: |
A data frame with coordinates, region, province, and municipality information
Leo Lahti sorvi-commits@lists.r-forge.r-project.org
See citation("sorvi")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.