Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
@wdkrnls Let me give you an example use case. Imagine you wanted to run 3 types of analyses on 5 datasets, each in its own dataframe/tibble. One target defines a list of tibbles (or alternatively, dynamic branches of tibbles made using the This will give you 3 x 5 = 15 branches, each containing 1 of 3 analyses of 1 of the 5 datasets you analyzed. You could then save each analysis in the next step. That being said, you could also just have 3 targets using the map pattern, and keep each set of analyses separate. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to wrap my head around dynamic branching and from reading the documentation a lot of emphasis is placed on using
cross
andslice
. However, it's not clear to me what their use cases are versus mapping across tibbles or groups within tibbles. After banging my head with these fancy pattern functions, I have found hashed branches hard to map back to their corresponding inputs in the simulation. Are these functions likely to be deprecated in the future because of this, or are there use cases for them where their complexity is worth it? Are there subtle methods of recovering their origins that I have overlooked? Integer indexing seems like an R anti-pattern to me: good for a spot check that things are working, but not for providing tangible assurance that the code is doing what you hope it is.Beta Was this translation helpful? Give feedback.
All reactions