现在purrr中的by_row()将被(是吗?)弃用,那么什么是新的首选tidyverse实现呢?
Now that by_row() in purrr is going to be (is?) deprecated, what is the new preferred tidyverse implementation of:somedata = expand.grid(a=1:3,b=3,c=runif(3))
somedata %>%
rowwise() %>% do(binom.test(x=.$a,n=.$b,p=.$c) %>% tidy())
看起来你可以将每一行嵌套到单独的列中,然后使用 map(),但我不确定如何进行这种嵌套操作...而且这似乎有点晦涩。有更好的方法吗?