| pull_tbl {dm} | R Documentation |
Retrieve a table
Description
This generic has methods for both dm classes:
With
pull_tbl.dm()you can chose which table of thedmyou want to retrieve.With
pull_tbl.dm_zoomed()you will retrieve the zoomed table in the current state.
Usage
pull_tbl(dm, table, ..., keyed = FALSE)
Arguments
dm |
A |
table |
One unquoted table name for |
... |
These dots are for future extensions and must be empty. |
keyed |
|
Value
The requested table.
See Also
dm_deconstruct() to generate code of the form
pull_tbl(..., keyed = TRUE) from an existing dm object.
Examples
# For an unzoomed dm you need to specify the table to pull:
dm_nycflights13() %>%
pull_tbl(airports)
# If zoomed, pulling detaches the zoomed table from the dm:
dm_nycflights13() %>%
dm_zoom_to(airports) %>%
pull_tbl()