You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Over the past week or two I have encountered multiple instances when helping some folks with {posterior} where I wished bind_draws() had an implementation for lists. See, for example, this bit of code from here:
Basically, the issue is that if you have a list of draws objects like betas_dfs and want to bind them together along something other than variables (along = "variable" is the default for bind_draws()), you have to make a fairly ugly construction with do.call().
The alternative is to allow arguments to bind_draws() to be draws objects or lists of draws objects (similar to how dplyr::bind_rows() works on data frame or lists of data frames). Then the second line above could just be:
Over the past week or two I have encountered multiple instances when helping some folks with {posterior} where I wished
bind_draws()
had an implementation for lists. See, for example, this bit of code from here:Basically, the issue is that if you have a list of draws objects like
betas_dfs
and want to bind them together along something other than variables (along = "variable"
is the default forbind_draws()
), you have to make a fairly ugly construction withdo.call()
.The alternative is to allow arguments to
bind_draws()
to be draws objects or lists of draws objects (similar to howdplyr::bind_rows()
works on data frame or lists of data frames). Then the second line above could just be:The text was updated successfully, but these errors were encountered: