I would most likely use either Dif or Lag and create new column. Then based on the values of that column, remove values from existing column
Names Default To Here(1);
dt = New Table("Untitled",
Add Rows(11),
Compress File When Saved(1),
New Column("Column 1",
Numeric,
"Continuous",
Format("Best", 12),
Set Values([4.1, 3.4, 3.4, 3.4, 5.1, 2.6, 4.1, 3.4, 7.2, 7.2, 7.2])
)
);
dt << New Column("ToDelete", Numeric, Nominal, << Set Each Value(
Dif(:Column 1) == 0
));
Or you can create new column with values (IfMZ is used to keep first row)
Names Default To Here(1);
dt = New Table("Untitled",
Add Rows(11),
Compress File When Saved(1),
New Column("Column 1",
Numeric,
"Continuous",
Format("Best", 12),
Set Values([4.1, 3.4, 3.4, 3.4, 5.1, 2.6, 4.1, 3.4, 7.2, 7.2, 7.2])
)
);
dt << New Column("NewValues", Numeric, Nominal, << Set Each Value(
IfMZ(Dif(:Column 1) == 0,
.
,
:Column 1
)
));
-Jarmo