Learn R Programming

dm (version 0.2.8)

pull_tbl: Retrieve a table

Description

This function has methods for both dm classes:

  1. With pull_tbl.dm() you can chose which table of the dm you want to retrieve.

  2. With pull_tbl.zoomed_dm() you will retrieve the zoomed table in the current state.

Usage

pull_tbl(dm, table)

Arguments

dm

A dm object.

table

One unquoted table name for pull_tbl.dm(), ignored for pull_tbl.zoomed_dm().

Value

The requested table

Examples

Run this code
# NOT RUN {
# 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()
# }

Run the code above in your browser using DataLab