dm_nest_tbl {dm} | R Documentation |
Nest a table inside its dm
Description
dm_nest_tbl()
converts a child table to a nested column in its parent
table.
The child table should not have children itself (i.e. it needs to be a
terminal child table).
Usage
dm_nest_tbl(dm, child_table, into = NULL)
Arguments
dm |
A dm. |
child_table |
A terminal table with one parent table. |
into |
The table to nest |
See Also
dm_wrap_tbl()
, dm_unwrap_tbl()
, dm_pack_tbl()
Examples
nested_dm <-
dm_nycflights13() %>%
dm_select_tbl(airlines, flights) %>%
dm_nest_tbl(flights)
nested_dm
nested_dm$airlines
[Package dm version 1.0.10 Index]