At the very least (if no keys exist in the given dm
) a dm()
statement is produced that -- when executed --
produces the same dm
. In addition, the code for setting the existing primary keys as well as the relations between the
tables is produced. If select = TRUE
, statements are included to select the respective columns of each table of the dm
(useful if
only a subset of the columns of the original tables is used for the dm
).
Mind, that it is assumed, that the tables of the existing dm
are available in the global environment under their names
within the dm
.