[R-sig-Geo] Spatial Join - over and weighted mean

2012-03-30 Thread Els Ducheyne
Dear R-SIG-GEO list I want to aggregate the mean value of points in a polygon using the over function. #Read the shapefile with the measurements shapefilename - paste(shapefiledir,shortNameIndicator,_,production.date,sep=) point.shapefile - readShapePoints(paste(shapefilename,.shp,sep=))

Re: [R-sig-Geo] Spatial Join - over and weighted mean

2012-03-30 Thread Edzer Pebesma
Els, what being weighted by what exactly? Any chance you can illustrate your problem by something we can reproduce? On 03/30/2012 01:58 PM, Els Ducheyne wrote: Dear R-SIG-GEO list I want to aggregate the mean value of points in a polygon using the over function. #Read the shapefile with

Re: [R-sig-Geo] Spatial Join - over and weighted mean

2012-03-30 Thread Els Ducheyne
Dear Edzer I have a point shapefile containing values of vaccination coverage (Z) estimated via a sample (SampleSize) The aim is to obtain a weighted mean of vaccination coverage per admin unit Below sample code studyzone - readShapePoly(paste(backgroundfilesdir,GDAM_studyzone.shp,sep=))

Re: [R-sig-Geo] Spatial Join - over and weighted mean

2012-03-30 Thread Els Ducheyne
Dear Edze Thanks for your help Best regards On 30 Mar 2012, at 15:10, Edzer Pebesma wrote: On 03/30/2012 02:29 PM, Els Ducheyne wrote: Dear Edzer I have a point shapefile containing values of vaccination coverage (Z) estimated via a sample (SampleSize) The aim is to obtain a weighted