image stops detecting wrong sized z matrix (PR#352)

About this list Date view Thread view Subject view Author view Other groups

Subject: image stops detecting wrong sized z matrix (PR#352)
albrecht.gebhardt@uni-klu.ac.at
Date: Tue 30 Nov 1999 - 23:28:12 EST


Message-Id: <199911301328.OAA28224@pubhealth.ku.dk>

Full_Name: Albrecht Gebhardt
Version: 0.90.0
OS: Linux + Tru64
Submission from: (NULL) (143.205.61.72)

This is where example(krige) from library(sgeostat) stops with R 0.90.0:

krige> image(grid$x, grid$y, grid$krige$zhat, add = T)
Error in length(x) == nrow(z) : comparison (1) is possible only for vector
types

in previous versions of R the above image() call worked, because image()
did the transformation

  grid$krige$zhat -> matrix(grid$krige$zhat,length(grid$x),length(grid$x))

iself. (BTW, contour() didn't)

Was this change of behaviour in image() made intentionally?

Anyway I will change the Rd help page for krige in sgeostat to
...
image(grid$x, grid$y, matrix(grid$krige$zhat,length(grid$x),length(grid$x)), add
= T)
...

Albrecht

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:11 EST