Mmm, I've never tried it with raster, I always used SpatialPointsDataFrame
(you have to assign coordinates to your data frame using
coordinates(coordsAInterpolar) <- c('ColNameX', 'ColNameY')) or
SpatialPixels. But try it directly with the raster, if it works then good,
if it doesn't you can cast the raster to SpatialPointsDataFrame using the
as method spdf <- as(raster, 'SpatialPointsDataFrame').

Best
Pablo

Ing. Pablo Alfaro Piñeyro
MotionSoft Consulting S.R.L.
Tel: 095 938 487



2013/11/1 netra <npt_eng@hotmail.com>

> Hello Pablo I am fine thanks,
>
> I am bit confuse "interpolation <- interpolate(observations=xyz, # I think
> you have to rename
> your "z" field to "value" " in your answer observations =xyz, but it must
> be
> raster isnot it? it complains
>
> "Error in (function (classes, fdef, mtable)  :
>   unable to find an inherited method for function 'interpolate' for
> signature '"data.frame"'.
> Netra
>
>
>
>
>
> --
> View this message in context:
> http://r-sig-geo.2731867.n2.nabble.com/raster-interpolation-within-shape-file-tp7585003p7585011.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

