Below are at least two ways to do this with scripting:
Names Default To Here(1);
dt = New Table("Untitled",
Add Rows(7),
Compress File When Saved(1),
New Column("Column 1",
Numeric,
"Continuous",
Format("Best", 12),
Set Values([1, 1, 2, 3, 2, 5, 1]),
Set Display Width(60)
)
);
dt << New column("Dublicate_formula", Numeric, <<Formula(
If(Col Rank(1, :column 1) > 1, 1,0))
);
dt << Select duplicate rows(Match(:column 1));
dubRows = dt << Get Selected Rows;
dt << New Column("Dublicates", Numeric, Nominal);
Column(dt, "Dublicates")[dubRows] = 1;
Column(dt, "Dublicates")[dt << Get Rows Where(IsMissing(:Dublicates))] = 0;
You can also do this without any scripting:
- Select columns you are interested in.
- From Rows menu: Row Selection -> Select Dublicate Rows
- Rows menu: Row Selection -> Name Selection In Column
- Choose name, Selected as 1 and Unselected as 0
-Jarmo