Re: [R-sig-Geo] Deleting shapefile polygon with no attribute / record

2010-01-06 Thread Roger Bivand
On Thu, 7 Jan 2010, Noli Sicad wrote: # Deleting shapefile polygons that doesn't much with record in the merge dbf file I have already told you to use "[" new_obj <- obj[keep,] where keep may be an integer vector of row numbers, a logical vector of TRUE/FALSE values, or (for newer versions

[R-sig-Geo] subsetting shapefile polygons with separate table criteria

2010-01-06 Thread Noli Sicad
# Subseting shapefile before merging tables - join table I realised that deleting the polygon with does match wit the record is not possible since, I can read the shapefile at all. But still I need to know how to delete / subset polygons. I think this is more workable. 1. Read shapefile polygons

[R-sig-Geo] Deleting shapefile polygon with no attribute / record

2010-01-06 Thread Noli Sicad
# Deleting shapefile polygons that doesn't much with record in the merge dbf file I want to do: 1. Delete polygons that doesn't have a match with record in joined / merge table of the shapefile. (Done transpose and merging - joined to one-to-one relationship already.) 2. Create a subset of the

Re: [R-sig-Geo] Testing if a point-pattern is on a regular grid

2010-01-06 Thread Pierre Roudier
Thanks Roger. Exactly what I was looking for. Pierre 2010/1/6 Roger Bivand : > On Wed, 6 Jan 2010, Pierre Roudier wrote: > >> Dear list, >> >> I'm looking for an easy way to test if a point pattern (I got a data >> frame of x and y coordinates) is on a regular grid or not. >> >> I'm aware of the

Re: [R-sig-Geo] Testing if a point-pattern is on a regular grid

2010-01-06 Thread Hisaji ONO
Hello. I have an idea using Thiessenn or voronoi by tripack. Extending this "points2grid()" method for grid polygon data will make calculation of spatial weight matrices of spdep better? Regards --- Roger Bivand wrote: > On Wed, 6 Jan 2010, Pierre Roudier wrote: > > > Dear list, > > >

Re: [R-sig-Geo] mixed geographically weighted regression

2010-01-06 Thread Marco Helbich
Great, thank you for giving me a hand! Best regards Marco Original-Nachricht > Datum: Tue, 5 Jan 2010 18:54:08 +0100 (CET) > Von: Roger Bivand > An: Marco Helbich > CC: r-sig-geo@stat.math.ethz.ch > Betreff: Re: [R-sig-Geo] mixed geographically weighted regression > On Tue,

Re: [R-sig-Geo] Kriging concept question

2010-01-06 Thread Tomislav Hengl
Tobin Cara wrote: Hello, I have recently read an interesting article about integrating Limited Area Models (LAMs) into kriging with external drift for temperature (Libert� et al. link below). www.wmo.int/pages/prog/www/IMOP/.../IOM.../P2(05)_Perini_Italy.doc This URL is incomplete. Please c

Re: [R-sig-Geo] One-to-many table relationship to shapefile polygon in spplot / plot - possible?

2010-01-06 Thread Noli Sicad
> Depends on your GIS! Shapefiles only have a 1-1 relationship, but > that's because they are a bit rubbish. If you use a proper spatial > database then you can do one-many. This is an application for a > PostGIS or Spatialite database, and if your GIS can read that (Qgis > for example) then you a

Re: [R-sig-Geo] One-to-many table relationship to shapefile polygon in spplot / plot - possible?

2010-01-06 Thread Barry Rowlingson
On Wed, Jan 6, 2010 at 6:16 AM, Noli Sicad wrote: > Hi, > > I have problem transposing my database table which is to be merged / > joined with the shapefile file (*.dbf) inorder to have one-to-one > relationship with shapefile polygon. As we know that inorder for the > polygon to be rendered in GI

Re: [R-sig-Geo] One-to-many table relationship to shapefile polygon in spplot / plot - possible?

2010-01-06 Thread Roger Bivand
On Wed, 6 Jan 2010, Noli Sicad wrote: Review ?reshape to convert to wide format before trying to merge into your object for using spplot(). Roger OK. The answer is not possible. I have been studying reshape - cast and melt. The illustration submit in my earlier post, can be easily done. But

Re: [R-sig-Geo] One-to-many table relationship to shapefile polygon in spplot / plot - possible?

2010-01-06 Thread Noli Sicad
> Review ?reshape to convert to wide format before trying to merge into > your object for using spplot(). > > Roger OK. The answer is not possible. I have been studying reshape - cast and melt. The illustration submit in my earlier post, can be easily done. But here is the real data (below) is b

Re: [R-sig-Geo] Creating random (but believable) geographies

2010-01-06 Thread Barry Rowlingson
There's been a bit of interest in my code so I'll try and make an R package out of it very soon. Also I've discovered some slight modification can make authentic-looking river networks - I've added a bit to my blog post to show what they look like - scroll to bottom of: http://geospaced.blogspot