I have a data set of GPS locations for a wildlife research project. GPS locations were collected 2x per hour (every 30 mins). However, the GPS collars sometimes would miss a location resulting in 1 location/hour. I need to subset my data set to only include locations where I have 2 GPS locations per hour (i.e., remove rows with only one location per hour). My issue is that due to the hierarchical data structure (GPS locations are nested within individual animal ID, Month, Day, Year, and Hour) I cannot find a simple solution to remove rows with only 1 location/hour. In the example data set below, I would only keep the locations at 10 am and 10:30 am (noted in red). In other words, I need to obtain a final file that contains only data with 2 locations per hour. Thanks for any help that you can provide!
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Collar_ID[/TD]
[TD]DATETIME[/TD]
[TD]WEEK[/TD]
[TD]YEAR[/TD]
[TD]MONTH[/TD]
[TD]DAY[/TD]
[TD]HOUR[/TD]
[TD]MOVEMENT_DISTANCE[/TD]
[TD]NET_DISPLACEMENT[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 8:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]8[/TD]
[TD]10[/TD]
[TD]3.6[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 10:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]78.1[/TD]
[TD]135.4[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013
10:30[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]99.8[/TD]
[TD]205.7[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 11:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]11[/TD]
[TD]92.7[/TD]
[TD]222.7[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 13:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]13[/TD]
[TD]27.7[/TD]
[TD]370.5[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 14:30[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]14[/TD]
[TD]8[/TD]
[TD]372.0[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 15:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]15[/TD]
[TD]5[/TD]
[TD]366.0[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Collar_ID[/TD]
[TD]DATETIME[/TD]
[TD]WEEK[/TD]
[TD]YEAR[/TD]
[TD]MONTH[/TD]
[TD]DAY[/TD]
[TD]HOUR[/TD]
[TD]MOVEMENT_DISTANCE[/TD]
[TD]NET_DISPLACEMENT[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 8:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]8[/TD]
[TD]10[/TD]
[TD]3.6[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 10:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]78.1[/TD]
[TD]135.4[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013
10:30[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]99.8[/TD]
[TD]205.7[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 11:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]11[/TD]
[TD]92.7[/TD]
[TD]222.7[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 13:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]13[/TD]
[TD]27.7[/TD]
[TD]370.5[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 14:30[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]14[/TD]
[TD]8[/TD]
[TD]372.0[/TD]
[/TR]
[TR]
[TD]33827[/TD]
[TD]10/1/2013 15:00[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]10[/TD]
[TD]1[/TD]
[TD]15[/TD]
[TD]5[/TD]
[TD]366.0[/TD]
[/TR]
</tbody>[/TABLE]