[R] error with surf.ls in spatial
Stewart Schultz
schultz at fig.cox.miami.edu
Tue Sep 25 23:24:25 CEST 2001
Hello R users,
Can someone point me to a solution to the problem below? The surf.ls()
call works fine in other contexts, e.g. the example in help(surf.ls). I'm
using R 1.3.1, and get the same error regardless of the platform (debian
Linux, MS Windows 98).
Many thanks,
Stewart
> library(spatial)
> topo.kr <- surf.ls(2,midxy)
Error in surf.ls(2, midxy) : NA/NaN/Inf in foreign function call (arg 1)
> midxy
V1 V2 X3
1 6.750591 2.280515 18
2 6.750329 2.284956 11
3 6.745228 2.317022 16
4 6.751195 2.266464 13
5 6.747244 2.318409 16
6 6.739429 2.399192 15
7 6.741451 2.362213 16
8 6.736954 2.408037 13
9 6.741585 2.431263 16
10 6.740649 2.376740 17
11 6.740518 2.454580 11
12 6.744032 2.448964 13
13 6.746881 2.445910 16
14 6.746243 2.302528 16
15 6.748407 2.284497 13
16 6.750472 2.282744 15
17 6.750196 2.266825 13
18 6.745316 2.315824 18
19 6.748146 2.326014 14
20 6.748526 2.326538 14
21 6.744256 2.380159 13
22 6.739437 2.400273 18
23 6.741691 2.363688 15
24 6.736916 2.408164 12
25 6.741756 2.429711 16
26 6.742869 2.447432 13
27 6.740748 2.372467 17
28 6.741235 2.377312 13
29 6.739363 2.450219 16
30 6.737913 2.458284 15
31 6.744049 2.449192 22
32 6.746550 2.441882 14
33 6.746107 2.302486 11
34 6.747754 2.282935 13
35 6.748923 2.287488 16
36 6.749357 2.269009 13
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list