[R] error with surf.ls in spatial
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Wed Sep 26 08:42:04 CEST 2001
On Tue, 25 Sep 2001, Stewart Schultz wrote:
> Hello R users,
>
> Can someone point me to a solution to the problem below? The surf.ls()
Read the help page! Surely if a function does not work the first thing to
do is to chexk that you are calling it correctly.
Arguments:
np: degree of polynomial surface
x: x coordinates or a data frame with columns `x', `y', `z'
Your object midxy (presumably a data frame) is not of the specified form.
However,
surf.ls(2, midxy$V1, midxy$V2, midxy$X3)
works. Calling it topo.kr (not on dataset topo) is bound to lead to
confusion.
> 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).
[...]
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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