Lesser known purrr tricks
purrr is a package that extends R’s functional programming capabilities. It brings a lot of new stuff to the table and in this post I show you some of the most useful (at least to me) functions included in purrr.
Getting rid of loops with map()
library(purrr) numbers <- list(11, 12, 13, 14) map_dbl(numbers, sqrt)
## [1] 3.316625 3.464102 3.605551 3.741657You ... [Read more...]