TreeCo and ATDN have few variable names that are common in the plot and species tables (e.g. N). After merging, one of them became 'N.y' but this does not seems to be producing any problems.
From Gabriel:
when a user inputs >1 table, we can store the table names given by the user and the variables within each table. That can be part of that profile without any extra effort involved by the user. If that profile is later used to create the output, it should not be difficult to do:
x1 <- unique(the_big_table[, variables in the table called table_with_xxx])
x2 <- unique(the_big_table[, variables in the table called table_with_yyy])
assign("table_with_xxx", x1)
assign("table_with_yyy", x2)
and return the data into separated tables with the same names assigned by the creator of the profile. It does not seem we need to know the primary or secondary keys explicitly.
From Renato:
From Gabriel: