The function is duplicatedgreat for such situations. For instance:
> test[!duplicated(test[,'Thresh']),]
High Thresh Sig
2007-02-27 19.01 11.88 1
2007-03-01 19.40 17.29 1
2007-03-14 21.25 20.41 1
2007-06-25 17.24 16.70 1
2007-06-27 18.98 18.89 1
If you need the same results as you, you can use the argument fromLast=:
> test[!duplicated(test[,'Thresh'], fromLast=TRUE),]
High Thresh Sig
2007-02-27 19.01 11.88 1
2007-03-02 18.63 17.29 1
2007-03-14 21.25 20.41 1
2007-06-25 17.24 16.70 1
2007-06-27 18.98 18.89 1
source
share