Replies: 1 comment 1 reply
-
I suppose it would be easier if those functions were defined. We could just as easily use functions in
The values returned in branches could have any number of forms, from vectors to multi-row data frames to environments to
The |
Beta Was this translation helpful? Give feedback.
-
Help
Description
I have/had a lot of trouble grasping how branching works.
When I went to run the static branching example from the book, I found out it don't work.
The problem, as far as I understood it, is that
method1
,method2
andsummarize_analysis
do not exists, as such I created a full working example with those functions.I have come up with this, that could be added in the book if it helps:
About the dynamic branching, in the
tar_group
examples it is unclear to me why it is needed theiteration = "group"
(+tar_group
) to be able to later useiteration = "vector"
.How could one use
iteration = "vector"
without a previous target withiteration = "group"
?In addition, would be possible to have dynamic branching with names?
Here is my idea about how to name the different iterations approaches
iteration = "group"
could collapse the grouping factor with "_" or just use the tar_group column instead of the hashiteration = "list"
could use the names of the list (if they exists)iteration = "vector"
could collapse the grouping factor with "_" or just use the tar_group column instead of the hash.This would help with to interpret the resulting object. This idea is similar to #672, specially this comment
Beta Was this translation helpful? Give feedback.
All reactions