dm_select_tbl: Select and rename tables

View source: R/select-tbl.R

dm_select_tblR Documentation

Select and rename tables

Description

dm_select_tbl() keeps the selected tables and their relationships, optionally renaming them.

dm_rename_tbl() renames tables.

Usage

dm_select_tbl(dm, ...)

dm_rename_tbl(dm, ...)

Arguments

dm

A dm object.

...

One or more table names of the tables of the dm object. tidyselect is supported, see dplyr::select() for details on the semantics.

Value

The input dm with tables renamed or removed.

Examples


dm_nycflights13() %>%
  dm_select_tbl(airports, fl = flights)


dm_nycflights13() %>%
  dm_rename_tbl(ap = airports, fl = flights)


krlmlr/dm documentation built on April 19, 2024, 5:23 p.m.