Can you plot a circle (or some other shape) around each store and find the
difference between your polygon and the 'store buffer'? Alternatively, you
can shrink your entire polygon. See `rgeos` package, say `gBuffer` function.

Cheers,
Roman


On Fri, Mar 14, 2014 at 12:52 PM, sylvain willart <sylvain.willart@gmail.com
> wrote:

> Dear list members,
>
> I am working on a project that involve catchment areas of stores within a
> region.
> I have the coordinates of the stores (spatial point dataframe), and the
> borders of the region (shp file, imported as a SpatialPolygonDataFrame)
>
> However, I would like to exclude stores that are to closed from the border
> of the region (because they certainly compete with stores from the
> neighbour region)
> I would like to exclude stores that are, let say, 15kms to the border
>
> So, I am looking for a way to :
>  - either "shrink" the polygon and keep the stores that are inside this
> shrinked region
>  - or calculate the distances between each stores and the border of the
> region and delete those who are too close
>
> I have seen some posts to calculate the distance between a point and a
> line, but none for a distance between points and a polygon when points are
> inside the polygon
>
> and help appreciated
>
> Sylvain
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
In God we trust, all others bring data.

	[[alternative HTML version deleted]]

