nearest_neighbor = Function( //by Graham Blatz //2/20/15 //Matches Nearest Neighbor of ostensibly dates, but whatever, man {dt1 = Current Data Table(), dt2 = Current Data Table(), rt1 = "ReadTime", rt2 = "ReadTime" }, {DEFAULT LOCAL}, If( dt1 == dt2, //default execution of a prompt, dunno a clean way around this without making some user camp inconvenienced. list_tables = {}; For( i = 1, i <= N Table(), i++, Insert Into( list_tables, Data Table( i ) << get name ); ); //sets up names of data tables to pick from dt1 = Data Table( list_tables[1] ); dt2 = Data Table( list_tables[2] ); //Reasonable Starting point win_tableselect = New Window( "Select Tables", <