I found I can merge two data sets best by using the "Join" data tables command, this best elminates possible duplicate entries that may exist - column 1 contains unique number for each entry. I have a script which opens multiple data tables and manipulates the data, but I'm having trouble calling out each data table separately in order to get the "join" script to work correctly:
If I am manually doing this the code is as such:
Data Table( "Untitled 322" ) << Join(Data Table( "Untitled 318" )),
Merge Same Name Columns,
By Matching Columns(:REPLICATE_ID = :REPLICATE_ID ),
Drop multiples(1, 1),
Name("Include non-matches" )(1, 1),
Preserve main table order(1),
Output Table("Merged")
My problem comes in when I try to code this form multiple tables. The Untitled tables (untitled 322, untitled 318, etc - there may be more depending how many files i open) are designated in my code as . So I want to somehow take my max and join with every other w.
I set up something as follows:
For (f = Data Table , f >= 1, f--,
Try(v = w << Join( With(Data Table (f)),
*and the rest follows the join table properties listed above*
However my code doesn't work. Anyone have an idea how I can do this?