Consider this table
var1 var2 var3
565 P0049129/21 146
565 P0020151/04 146
I would like to go over this table, find consecutive lines where var3 equals the same value (146 in this example) and remove one of those lines.
Note that in this table there are other rows where var3=146 and I want to keep those rows. I just want to remove duplication when var3 has the same value on two consecutive rows.
Thanks