problem with example inverse distance weighted (IDW) interpolation
Thanks, Edzer. I had a feeling this is the case, that idw is called from spatstat instead from gstat in my session. So what I did is detach and call the gstat again, so it can overrides spatstat idw function. detach(package:gstat) library(gstat) PS: I appreciate the live streaming of the lectures from GEOSTAT 2012 in Muenster last week. Sincerely, Melita.
At 13:03 13.9.2012, you wrote:
On 09/13/2012 12:43 PM, melita wrote: > # Error: is.ppp(X) && is.marked(X) is not TRUE Melita, thanks for bringing this up. If you first load package gstat, and then load package spatstat, you'll see the following warning: Attaching package: ???spatstat??? The following object(s) are masked from ???package:gstat???: idw At some stage package spatstat decided to provide inverse distance weighting and and also call the function to do this idw, but using other syntax and assumptions about the arguments provided than gstat does. There's no way for gstat to catch this as it is now, as gstat::idw is not called at all. A solution would be to not load spatstat, or load spatstat after gstat (in which case the conflict will point to spatstat:idw being masked by gstat). The spatstat package authors could solve this conflict if idw in spatstat was also defined as an S4 method, as gstat does, rather than as a function. Now it comes up, I'm curious why, as spatstat suggests, one would want to interpolate point pattern marks. As there are no marks where there are no points, how should the interpolated values be understood? Or is this intended to be done outside the observation window? -- Edzer Pebesma Institute for Geoinformatics (ifgi), University of M??nster Weseler Stra??e 253, 48151 M??nster, Germany. Phone: +49 251 8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.dehttp://www.52north.org/geostatistics [hidden email] _______________________________________________ R-sig-Geo mailing list [hidden email] https://stat.ethz.ch/mailman/listinfo/r-sig-geo If you reply to this email, your message will be added to the discussion below: http://r-sig-geo.2731867.n2.nabble.com/problem-with-example-inverse-distance-weighted-IDW-interpolation-tp7580941p7580952.html To unsubscribe from problem with example inverse distance weighted (IDW) interpolation, click here . NAML -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/problem-with-example-inverse-distance-weighted-IDW-interpolation-tp7580941p7580954.html Sent from the R-sig-geo mailing list archive at Nabble.com.