[R-sig-Geo] Zerodist

Edzer Pebesma edzer.pebesma at uni-muenster.de
Sat Nov 20 12:38:44 CET 2010


if your data are in d, pass d[-zerodist(d)[,1],] as data argument to the
kriging function.

This arbitrarily removes duplicate points, so they are ignored in the
kriging. If you want to do something more sophisticated, zerodist can be
used to identify the duplicate pairs.

On 11/20/2010 12:29 PM, Matevž Pavlič wrote:
> Hi all, 
> 
>  
> 
> I got the 
> 
>> "chfactor.c", line 130: singular matrix in function LDLfactor()
> 
> Error in predict.gstat(g, newdata = newdata, block = block, nsim = nsim,  : 
> 
> LDLfactor<
> 
>  
> 
> Error, probably because there are some point pairs with zero distance in the matrix. My question is, how can i delete these duplicate nodes from the data set?
> 
>  
> 
> Thanks, m
> 
>  
> 
>  
> 
>  
> 
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
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.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list