I think you might not be able to rename them as you have linked subsets
Names Default To Here(1);
dt_main = New Table("Untitled",
Add Rows(1),
Compress File When Saved(1),
New Column("Time 1", Numeric, "Continuous", Format("Best", 12), Set Values([1])),
New Column("Parameter 1", Numeric, "Continuous", Format("Best", 12), Set Values([1])),
New Column("Time 2", Numeric, "Continuous", Format("Best", 12), Set Values([2])),
New Column("Parameter 2", Numeric, "Continuous", Format("Best", 12), Set Values([2]))
);
dt_subset1 = dt_main << Subset(
Output Table("Subset 1"),
Linked,
Suppress formula evaluation(0),
All rows,
columns(:"Time 1"n, :"Parameter 1"n)
);
dt_subset2 = dt_main << Subset(
Output Table("Subset 2"),
// Linked,
Suppress formula evaluation(0),
All rows,
columns(:"Time 2"n, :"Parameter 2"n)
);
dt_subset1:"Time 1" << Set Name("Time");
dt_subset2:"Time 2" << Set Name("Time");
In this example you can see that Time 2 gets renamed to Time but Time 1 doesn't. Also depending on your starting data and what you wish to do in the end, some stack/split combination could be useful here.
-Jarmo