Deduplicate rows deterministically

Hi,
I am missing the following functionality in the deduplication component.
When I use this, I would like to have a choice of which record to keep.
Its removes the duplicate line and saved one.
Knime Functionality:

Help:

Hi Rob,

You can do deterministic deduplication in EasyMorph with two actions:

Enumerate rows
Keep min/max

With "Enumerate rows", assign a row number inside each group of duplicate values.

With "Keep min/max", keep only the 1st row, or the last row in each group.

See the example below:

deterministic-deduplicate.morph (4.5 KB)

Bonus point: Keep only the Nth duplicate (e.g. N=2) with the regular "Filter" action (also in the example above).