Skip to content
Prev 9836 / 29559 Next

Convert from spatialpointsdataframe to spatialpoints

Manuel.

Did you try it without converting? The help file in raster says it
needs a SpatialPoints* object. The '*' is a wild card that in this
case stands for 'DataFrame'.

The answer to your question:

as(x, 'SpatialPoints')

You could find the answer to many of this type of questions by reading
the vignettes of sp and raster, and by searching the R-sig-geo help
archives, and looking at the R spatial wiki.

Robert
On Thu, Nov 4, 2010 at 10:25 AM, Manuel Sp?nola <mspinola10 at gmail.com> wrote: