Closed maurolepore closed 5 years ago
Ideas:
data /
sync(key = NULL) /
filter() /
arrange(1) /
unsync()
Code within sync() has the sync class with special behaviour. Whatever happens on rows is applyed to the key
-- if not null -- then propagated to the other elements of the list. Maybe it understands only the main 5-dplyr-verbs.
Another way
data /
sync(exression)
For example
data /
sync(filter(this_column == "this_value"), key = "this_column")
or
data /
sync(this_key_col, filter)(this_col == "this_value")
trunk
may refer to a something analog to a tree or git master branch branch
may refer to any branch/stem (master or not)slide()
and tyle()
look good.Relates, is the {rtbl} project.
Also consider a map_on()
and map_off()
:
data /
nest() /
map_on(data) /
filter(this_col == "this_value") /
map_off()
unnest()
This commit adds pick() which is the basis for sync() -- a general function to apply a function to one
key
dataframe in a list and propagate the indices to all other elements.