[R-sig-Geo] Decision tree classification of satellite image in R

2014-05-05 Thread Anusheema Chakraborty
Hi! I am trying to classify satellite image in R using RWeka classifier, J48. I have a CSV file with the classes required, and raster data loaded in R. I am able to make the tree, however, I am not able to use the same tree to classify my satellite image. Here's how it goes. inputfile=read.csv("

Re: [R-sig-Geo] BYM model in R-INLA - how to specify priors individually

2014-05-05 Thread VIRGILIO GOMEZ RUBIO
Dear James, You should be able to set the prior of your random effects using hyper= in the call to f(). In your particular case, you can try: #Create areas IDs to match the values in nc.adj nc.sids$ID<-1:100 nc.sids$ID2<-1:100 hyper.besag <-list(prec=list(prior="loggamma", params=c(.1, .1))) hyp

Re: [R-sig-Geo] Export matrix weights to excel.

2014-05-05 Thread Roger Bivand
On Mon, 5 May 2014, Rolando Valdez wrote: Yes, I got it. Now, I saw an issue in the matrix, I’ve got two regions with value 1 inside the matrix, if it is W style, how is it possible?. The rest of rows are standardized. You can "see" it, nobody else can. Are all the rowSums() of the matrix 1

Re: [R-sig-Geo] Export matrix weights to excel.

2014-05-05 Thread Rolando Valdez
Yes, I got it. Now, I saw an issue in the matrix, I’ve got two regions with value 1 inside the matrix, if it is W style, how is it possible?. The rest of rows are standardized. Another question, the output follow the order of regions of the shape file, isn’t? Thank you El 04/05/2014, a las 12

Re: [R-sig-Geo] reading CRU files in .dat format into a data frame

2014-05-05 Thread Remi Genevest
Well, thanks for this advice, but actually I already read this page. What I was looking for is close to the issue proposed in this post by Lionel : http://r-sig-geo.2731867.n2.nabble.com/Turning-SpatialPointsDataFrame-to-Raster-using-rasterize-td7582452.html -- View this message in context:

[R-sig-Geo] BYM model in R-INLA - how to specify priors individually

2014-05-05 Thread James Rooney
Hi all, I am attempting to implement the Besag-York-Mollie model in R-INLA. Specifically to recreate the WinBUGS model specified in ASDAR fig 11.10. However I cannot figure out how to specify the spatial and random priors to be different as they are in the WinBUGS model fig11.10. i.e. from the