Re: [R] [FORGED] find numbers that fall in a region or the next available.

2016-02-04 Thread David L Carlson
Assuming your map area can be described as a closed polygon, these functions would tell you which points lie within the boundaries of the polygon. David C From: Alaios [mailto:ala...@yahoo.com] Sent: Thursday, February 4, 2016 1:34 AM To: David L Carlson; r-help@r-project.org Subject: Re: [R]

Re: [R] [FORGED] find numbers that fall in a region or the next available.

2016-02-03 Thread Alaios via R-help
Thanks. I am using distm of the geoshere package.I still wonder if there is a package that can tell me if a gps coordinate or not falls inside my area that is defined as: bbox <- c(min(PlotPoints[, 1])-0.001, min(PlotPoints[, 2])-0.001, max(PlotPoints[, 1])+0.001, max(PlotPoints[, 2])+0.001)

Re: [R] [FORGED] find numbers that fall in a region or the next available.

2016-02-03 Thread Alaios via R-help
That is a great tip thanks.That would indeed bring me points that are the closes to my area.. but if I am not wront that returns points that are part of a circle surface. It might be that I get a point that is just 50 meters outside of my map area. Is not that true? I would need after I find

Re: [R] [FORGED] find numbers that fall in a region or the next available.

2016-02-03 Thread David L Carlson
Look at the point.in.polygon() and over() functions in package sp. - David L Carlson Department of Anthropology Texas A University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Alaios

Re: [R] [FORGED] find numbers that fall in a region or the next available.

2016-02-02 Thread Rolf Turner
On 03/02/16 11:04, Alaios via R-help wrote: Dear all,I have GPS coordinates (one vector for longitude and one for latitude: GPSLong and GPSLat) of small are that is around 300meters X 300 meters (location falls inside UK).At the same time I have two more vectors (Longitude and Latitude) that