This will create a new set set_name_new with the keys from both set_name_1 and set_name_2 combined. By default the description will be a combination of the descriptions of the subsets and the new set will only be active it BOTH subsets were active.
joinTsSets(con, set_name_1, set_name_2, set_name_new,
user_name1 = Sys.info()["user"], user_name2 = user_name1,
user_name_new = user_name1, description = NULL, active = NULL,
tbl = "timeseries_sets", schema = "timeseries")
PostgreSQL connection
Name of the first set
Name of the second set
Name of the set to be created
User name of the first set's owner
User name of the second set's owner
User name of the new set's owner
Description of the new set
Should the new set be marked as active
The time series set table
The time series db schema to use