Once you create your buffer using gBuffer, you can run gIntersects using your GPS relocations and the buffer, i.e:

within <- gIntersects(GPS relocations, buffer)



And then just do a table on the resulting matrix to see which are true, i.e.:

table(within)



This should give you exact number of points included in the buffer area.



********************************

Marc Weber

Geographer

Western Ecology Division

US EPA

200 S.W. 35th Street

Corvallis, OR 97333

Voice: (541) 754-4469

email: weber.marc@epa.gov<mailto:weber.marc@epa.gov>

***********************************





   1. Question related to rgeos package (Dylann Kersusan)





----------------------------------------------------------------------



Message: 1

Date: Tue, 23 Jul 2013 11:26:02 +0200

From: Dylann Kersusan <kersusan.dylann@gmail.com<mailto:kersusan.dylann@gmail.com>>

To: r-sig-ecology@r-project.org<mailto:r-sig-ecology@r-project.org>

Subject: [R-sig-eco] Question related to rgeos package

Message-ID:

      <CAEcqiB9WTB=nXy1QOqbnPb+ALE8HuO99TNEqSu9LQRu=Kdj6-A@mail.gmail.com<mailto:CAEcqiB9WTB=nXy1QOqbnPb+ALE8HuO99TNEqSu9LQRu=Kdj6-A@mail.gmail.com>>

Content-Type: text/plain



Dear all,



I am currently working on GPS relocations and more specifically on the study of territoriality (lynx and wolverine).



I'd like to use the function gBuffer from the rgeos package to apply a buffer area to a home-range. What I'd like to get is the exact number of points included in the buffer area. Does anyone knows if it is possible to extract that from str() or summary() or some other kind of output? And if not included in the function's output, do you think of something else that I could use or add to this?



Thanx a lot,

Regards



--

Dylann Kersusan

Master Biodiversity and Conservation

Zoology dept. Stockholm University

--

Grims? Wildlife Research Center

Ecology dept. SLU

Riddarhyttan-Sweden



      [[alternative HTML version deleted]]







------------------------------



_______________________________________________

R-sig-ecology mailing list

R-sig-ecology@r-project.org<mailto:R-sig-ecology@r-project.org>

https://stat.ethz.ch/mailman/listinfo/r-sig-ecology





End of R-sig-ecology Digest, Vol 64, Issue 17




	[[alternative HTML version deleted]]

