dm_nest_tbl | R Documentation |
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).
dm_nest_tbl(dm, child_table, into = NULL)
dm |
A dm. |
child_table |
A terminal table with one parent table. |
into |
The table to nest |
dm_wrap_tbl()
, dm_unwrap_tbl()
, dm_pack_tbl()
nested_dm <-
dm_nycflights13() %>%
dm_select_tbl(airlines, flights) %>%
dm_nest_tbl(flights)
nested_dm
nested_dm$airlines
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.