dm_select_tbl()
keeps the selected tables and their relationships,
optionally renaming them.
dm_rename_tbl()
renames tables.
Arguments
- dm
A
dm
object.- ...
One or more table names of the tables of the
dm
object.tidyselect
is supported, seedplyr::select()
for details on the semantics.
Examples
dm_nycflights13() %>%
dm_select_tbl(airports, fl = flights)
#> ── Metadata ────────────────────────────────────────────────────────────────────
#> Tables: `airports`, `fl`
#> Columns: 27
#> Primary keys: 1
#> Foreign keys: 1
dm_nycflights13() %>%
dm_rename_tbl(ap = airports, fl = flights)
#> ── Metadata ────────────────────────────────────────────────────────────────────
#> Tables: `airlines`, `ap`, `fl`, `planes`, `weather`
#> Columns: 53
#> Primary keys: 4
#> Foreign keys: 4