R targets build complex pipelines that subset tasks

Reading the documentation, I could not understand how I can build a pipeline like the one below, with static or dynamic branching

once I branch to many tasks, I need to do operation on just a subset of them (that I could know a priori). However, even using the grouping I don’t see how to carry indices through the pipeline that allow me to subset targets.