Joins the relational tables of a built database into one wide table, by calling traits.use::flatten_database().

database_create_combined_table(database, ...)

Arguments

database

A built database object

...

Further arguments passed to traits.use::flatten_database(), such as format, vars and include_description

Value

A single wide table combining the database's relational tables

Details

Wenk et al. 2024 (Ecological Informatics 83:102773) presents database_create_combined_table as the route to the combined table, but it was only ever assigned here and never exported, so the published workflow could not be followed. The paper is the public specification of this workflow, so the name it documents resolves.

This is a thin pass-through rather than a reimplementation on purpose. The joins it relies on are eight functions totalling ~264 lines in traits.use, and querying a built compilation is that package's job – this one builds the database. Arguments are passed straight through so the defaults have a single definition.

Note that traits.use is currently in Depends. When it moves to Suggests this needs a util_require_package("traits.use", ...) guard, as does build_combine() – see #225.