[R] Kriging Package Cryptic Error Message

S Ellison S.Ellison at lgcgroup.com
Wed Jul 10 12:39:10 CEST 2013


Try initial fitting with fewer lags; I get a fit to your data with lags=3.

S Ellison
 

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of Diego Ubuntu
> Sent: 06 July 2013 16:09
> To: r-help at r-project.org
> Subject: [R] Kriging Package Cryptic Error Message
> 
> I'm trying to get a kriging surface using these data, but I 
> only get this error message. Any ideas on why or how to solve it.
> >d
>           x       y      e
> 1  551595.2 1804062    2.0
> 2  599591.7 1820823    2.0
> 3  615604.7 1820903    2.0
> 4  612337.6 1770989    2.1
> 5  614203.6 1761816    3.0
> 6  514248.6 1739406   26.0
> 7  448250.4 1737691    3.0
> 8  399904.6 1708316   31.0
> 9  487431.4 1676800  670.0
> 10 614769.4 1647540  442.0
> 11 485710.4 1673041    0.0
> 12 308095.1 1635087 1079.0
> 13 374141.7 1583102 1674.0
> 14 483754.7 1472197   48.0
> 15 433475.7 1588404  628.0
> 16 476571.0 1553267 1007.0
> 17 433480.4 1590174  628.0
> 18 264654.0 1596733  626.0
> 19 431438.7 1470399    5.0
> 20 429587.9 1466754    5.0
> 
> >kriging(d$x,d$y,d$e)
> Error in krig.fit(D, nugget, range, sill, model, n) :
>   NA/NaN/Inf in foreign function call (arg 3)
> 
> Thanks
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> 

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list