I have a table in which each row represents a record. The data has a parent-child relation. Updated records are children from a parent record and some parts of the record will be changed. Each record has an insert-date (datetime). I am only interested in the latest records an want to filter the whole dataset for them.
In R I would do it with something like
my_dataset <- my_datset[which(!duplicated(dup.index, fromLast = TRUE)),]
where dup.index is a list of columns which I´ll test for duplicates.