Re:An opinionated view of the Tidyverse “dialect” of the R l...
by cwyers on Friday July 05, 2019 @05:47PM
(#20366146)
map() in purrr is functionally equivalent to lapply(). If you can do something in lapply, you can do it with map.
[ Parent
| on HN ]
Re:An opinionated view of the Tidyverse “dialect” of the R l...
by notafraudster on Friday July 05, 2019 @08:36PM
(#20366977)
Right, which is why my example used its cousin, apply, instead of lapply. apply over the row margins of a data frame does not have an equivalent in tidyverse.