Re: [R] point.in.polygon help

2013-05-23 Thread karengrace84
I am looking at fish tagging data. I have gps coordinates of where each fish was tagged and released, and I have a map of 10 coastal basins of the state of Louisiana. I am trying to determine which basin each fish was tagged in. -- View this message in context: http://r.789695.n4.nabble.com/po

[R] point.in.polygon help

2013-05-21 Thread karengrace84
I am new to mapping with R, and I would like to use the point.in.polygon function from the sp package, but I am unsure of how to get my data in the correct format for the function. The generic form of the function is as follows: point.in.polygon(point.x, point.y, pol.x, pol.y, mode.checked=FALSE)

[R] how to sum multiple data entries for the same sampling event?

2012-01-30 Thread karengrace84
I'm having trouble with some catch per unit effort data (CPUE, fisheries data). Some of the samples were "retained" and some "unretained," and they are entered as 2 separate entries for the same sampling event (Date and time). I want to calculate the total CPUE (so sum the "retained" and "unretaine