locate a point
Shelob1985 at libero.it schreef:
Hi everybody. I have a very elementary question but any help is appreciated.
I have a database which contains the indication of latitude and
longitude of, say, South American mineral ores. I have to find out in which
country
of South America each mineral ore is located. There are certainly maps of
South America with the indication of states boundaries which can be read and drawn by R. Is there any way I can use R to assign each data point to the country in which it falls? Thanks, Sheila
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Hi, Take a look at the overlay() command in the sp package. See also the rgdal package to read any boundary data into R. cheers, Paul
Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul