Consider the application of the R function duplicated() to identify unwanted replicate values and remove them from your data table.
Watch Tutorial
Tutorial Video
Consider the application of the R function duplicated() to identify unwanted replicate values and remove them from your data table.