Re: [R-sig-Geo] select a row in a data.frame

2009-10-13 Thread Fernando Miguez
Hi Gianni, See also which.max Fernando Dan Putler wrote: Hi Gianni, First the chide, you are asking a general (very beginner) R question on the Geospatial Special Interest Group mailing list, which isn't the right list for your question. The closest to the correct list is R-Help, but this is

Re: [R-sig-Geo] select a row in a data.frame

2009-10-13 Thread Dan Putler
Hi Gianni, First the chide, you are asking a general (very beginner) R question on the Geospatial Special Interest Group mailing list, which isn't the right list for your question. The closest to the correct list is R-Help, but this is really something one learns from books on R, which there are a

[R-sig-Geo] select a row in a data.frame

2009-10-13 Thread gianni lavaredo
thanks for help, I have a data.frame "newData" with 7 columns and 91 rows. i wish to find the row in the second column "X" with the max value and save all 7 values (=all columns) in a new data.frame # max value result for row Max.Result <- max(newData$result) select the row with the max value

Re: [R-sig-Geo] passing SQL through readOGR()

2009-10-13 Thread Roger Bivand
On Tue, 13 Oct 2009, Tom Gottfried wrote: Hi list, is there a way to pass any SQL-statement through readOGR (as with the -sql Option to ogr2ogr). I want to import a subset of a large dataset from PostGIS into R. I know it's possible with for example RODBC and then coercing the resulting data

Re: [R-sig-Geo] passing SQL through readOGR()

2009-10-13 Thread Barry Rowlingson
On Tue, Oct 13, 2009 at 4:34 PM, Tom Gottfried wrote: > Hi list, > > is there a way to pass any SQL-statement through readOGR (as with the -sql > Option to ogr2ogr). I > want to import a subset of a large dataset from PostGIS into R. I know it's > possible with for > example RODBC and then coerc

[R-sig-Geo] passing SQL through readOGR()

2009-10-13 Thread Tom Gottfried
Hi list, is there a way to pass any SQL-statement through readOGR (as with the -sql Option to ogr2ogr). I want to import a subset of a large dataset from PostGIS into R. I know it's possible with for example RODBC and then coercing the resulting data.frame to an sp-class, but I wonder if I can

Re: [R-sig-Geo] GWR and NAs

2009-10-13 Thread Danlin Yu
Raphael Saldanha: Based on the output you provided, apparently these NAs are either ignored or treated as zeros. When you got a CV score as zero, you shall be aware that there is definitely a problem (all the adaptive qs produce the same 0, that means you are basically regression the dependent

[R-sig-Geo] GWR and NAs

2009-10-13 Thread Raphael Saldanha
Hi! I'm trying to use GWR with a dataset who has a lot of NAs. How spgwr considers NAs? As a test, I'm having the following results: > g.adapt.gauss.00 <- gwr.sel(pib00 ~ cv00 + le00 + ma00 + ou00, data=dados, adapt=TRUE, coords=cbind(dados$x, dados$y)) Adaptive q: 0.381966 CV score: 0 Adaptive

[R-sig-Geo] NSIDC Sea-ice Projection

2009-10-13 Thread Peron Clara
iques de Chizé - CNRS UPR1934 79360 Villiers-en-Bois, France http://www.cebc.cnrs.fr/Fidentite/peron/peron.htm __ Information from ESET Mail Security, version of virus signature database 4503 (20091013) __ The message was che