#Removes duplicate entries
newgps <- newgps[!duplicated(newgps$DT),]

#Use code to look for NAs which are very bad and can cause code failure
merge$DT


#Check for duplicates on a variety of data types
duplicated(HexPols2@polygons)#No duplicates here!
duplicated(deer.spdf@data)#No duplicates here!
duplicated(o2)