Skip to content
Prev 8394 / 29559 Next

from R to ArcMap

On 05/28/2010 10:58 AM, Rui Catarino wrote:
Hi Rui,

If you have your data in the following format in a data.frame (which you 
do not specify):

x    y    z
1    1    3.42
1    2    4.51

You can transfer this to a SpatialPixelsDataFrame by:

coordinates(bla) = ~x+y

assuming your data.frame is named bla. See the documentation of the 
sp-package for more information. After this conversion you can export 
the data to any GIS raster format that your installation of rgdal supports.

cheers,
Paul