[R-sig-Geo] helps in predicting with spatial data

2010-05-28 Thread Steve Hong
Dear list, I have data collected from a field (rectangular shape). Sampling points within the field are regularly spaced (about every 4 meters). My overall goal is to predict (or estimate) at other points within the same field. My main question is: Do I have to use a different approach when I

[R-sig-Geo] Error in simulation R-code

2009-07-15 Thread Steve Hong
0 0 o.legume grains 1690 1 1700 1 1711 1 1930 0 2170 0 Thank you in advance!! Steve Hong [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo

[R-sig-Geo] Error in simulation R-code

2009-07-15 Thread Steve Hong
!! Steve Hong [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

[R-sig-Geo] Error in simulation R-code

2009-07-15 Thread Steve Hong
Dear List, I have got error message when I run the R-code. Can anyone has a suggestion? v.code - df.bm7[,c(10:31)]; v.code[1:3,] names(v.code) CM = v.code # variable binomial code sim.sp - function(data,CM,n,N) { C - matrix(rep(NA,N),ncol=1) for(i in 1:N) { j - n xx -

Re: [R-sig-Geo] Error in simulation R-code

2009-07-15 Thread Steve Hong
First I apologize all of you for annoying messages. Since I did not receive the mail I sent, I thought there might be some errors. On Wed, Jul 15, 2009 at 5:13 PM, Roger Bivand roger.biv...@nhh.no wrote: On Wed, 15 Jul 2009, Steve Hong wrote: Dear List, I have a question about simulation

[R-sig-Geo] rgdal pckg: Convert LL to UTM

2009-07-10 Thread Steve Hong
Dear List, Thanks again for answering my question. I was able to convert LL to UTM using 'rgdal' package. Below is the code I used. library(rgdal) my.data2 - read.delim(clipboard, header=T) my.data - SpatialPoints(my.data, proj4string=CRS(+proj=longlat +ellps=WGS84)) my.data.utm -

[R-sig-Geo] convert long/lati to UTM

2009-07-09 Thread Steve Hong
Hi R-sig-geo list, I am very new to spatial stat using R. I have a basic (pretty much to most of you) question. I have data set with Longitude and Latitude columns and want to convert to them UTM Although I found example of it from the previous questions and answers, I am still struggling to

Re: [R-sig-Geo] convert long/lati to UTM

2009-07-09 Thread Steve Hong
Thank all of you for responding! I will take a look at rgdal. Cheer! Steve - Original Message - From: Roger Bivand roger.biv...@nhh.no Date: Thursday, July 9, 2009 4:04 pm Subject: Re: [R-sig-Geo] convert long/lati to UTM To: Barry Rowlingson b.rowling...@lancaster.ac.uk Cc: Paul