# NOT RUN {
flights_wrapped <-
dm_nycflights13() %>%
dm_wrap_tbl(flights)
# The ptype is required for reconstruction.
# It can be an empty dm, only primary and foreign keys are considered.
ptype <- dm_ptype(dm_nycflights13())
flights_wrapped %>%
dm_unpack_tbl(flights, airlines, ptype)
# }
Run the code above in your browser using DataLab