Closed davidchampredon closed 2 years ago
In simul.R simplify the huge summarize() code in simul_from_post() using the combination summarize (across(...)) . See https://stackoverflow.com/questions/64270888/dplyr-custom-function-in-summarize-at
simul.R
summarize()
simul_from_post()
summarize (across(...))
The names of the new variables may even be automatically generated with a function (ie, one that appends .lo etc) using the argument .names of across().
.lo
.names
across()
Done in b50f8a9b571d6acf0a39d88698ae0e0897c48935
In
simul.R
simplify the hugesummarize()
code insimul_from_post()
using the combinationsummarize (across(...))
. See https://stackoverflow.com/questions/64270888/dplyr-custom-function-in-summarize-atThe names of the new variables may even be automatically generated with a function (ie, one that appends
.lo
etc) using the argument.names
ofacross()
.