[R] bug in geoR (?)

From: Antonio, Fabio Di Narzo <antonio.fabio_at_gmail.com>
Date: Wed 14 Dec 2005 - 03:18:14 EST


I've enconuntered this problem with the last cran version of geoR:

> library(geoR)
> day <- rep(1:2, each=5)
> coords <- matrix(rep(runif(10),2), 10, 2)
> data <- rnorm(10)
> data[1] <- NA
> as.geodata(cbind(coords, data, day), realisations=4)
as.geodata: 1 points removed due to NA in the data Errore in as.geodata(cbind(coords, data, day), realisations = 4) :

        realisations and coords have incompatible dimensions

The problem disappear if I remove the NA manually from the dataset before passing to as.geodata. I.e.:
> as.geodata(cbind(coords, data, day)[2:10,], realisations=4)
works.

Antonio, Fabio Di Narzo.

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Dec 14 04:26:27 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:36 EST