Re: [R-sig-Geo] Empirical Bayes smoothing (DCluster)

2013-10-10 Thread Virgilio Gómez-Rubio
Dear Dorothea, > I have used both of the empirical Bayes smoothing models (Poisson-Gamma and > Log-normal) implemented in the package DCLuster for smoothing disease risk > in > a study region. > But I wonder if there is a function where the local mean can be used > instead of > the global mean in

[R-sig-Geo] as.data.frame excluding NA in raster package

2013-10-10 Thread Bastien.Ferland-Raymond
Dear R Geoer, This is more a request than a question as I already succeeded at doing what I wanted to do. However, I'm open to suggestion to do it better, but I really think is would be a nice feature to add the the as.data.frame() function in the raster package. I've been using the as.data.fr

Re: [R-sig-Geo] Error in SpatialPointsDataFrame(..., match.ID=TRUE)?

2013-10-10 Thread Roger Bivand
On Thu, 10 Oct 2013, Jonathan Greenberg wrote: As a follow-up, it appears that the requirement in SpatialPointsDataFrame is not that the rownames not be NULL, but that it be a character. The line that appears to be causing the issue is: if (match.ID && is.character(attr(data, "row.names"))) {