Skip to content

locate a point

3 messages · Shelob1985 at libero.it, Paul Hiemstra, Tom Gottfried

#
country
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
2 days later
#
Shelob1985 at libero.it schreef:
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
#
Hi Sheila,

the maps package might be interesting for you too. Maybe you have to
check how precise/reliable the data provided by this package are.
If you get boundary data in shape-format, the maptools package can be
useful for importing too (besides rgdal which can handle many other
formats).

Tom