dm_zoom_to()
: zooms to the given table.
dm_update_zoomed()
: overwrites the originally zoomed table with the manipulated table.
The filter conditions for the zoomed table are added to the original filter conditions.
dm_insert_zoomed()
: adds a new table to the dm
.
dm_discard_zoomed()
: discards the zoomed table and returns the dm
as it was before zooming.
Whenever possible, the key relations of the original table are transferred to the resulting table
when using dm_insert_zoomed()
or dm_update_zoomed()
.
Functions from dplyr
that are supported for a zoomed_dm
: group_by()
, summarise()
, mutate()
,
transmute()
, filter()
, select()
, rename()
and ungroup()
.
You can use these functions just like you would
with a normal table.
In addition to filtering the zoomed table, the filter condition from filter()
is also stored in the dm
.
Depending on which function you use to return to a normal dm
, one of the following happens:
dm_discard_zoomed()
: all filter conditions for the zoomed table are discarded
dm_update_zoomed()
: the filter conditions of the original table and those of the zoomed table are combined
dm_insert_zoomed()
: the filter conditions of the original table stay there and those of the zoomed table are
transferred to the new table of the dm
Furthermore, the different join()
-variants from dplyr are also supported (apart from nest_join()
).
The join-methods for zoomed_dm
have an extra argument select
that let's you choose the columns of the RHS table
in a tidyselect manner.
And -- last but not least -- also the tidyr-functions unite()
and separate()
are supported for zoomed_dm
.