The {purrr} package contains many useful functions that allow you to use functional programming in R. In this video, I'll be showing how to use reduce() to avoid writing slow and clunky loops.
I'm also showing you the map2 function, as a bonus.
Follow me on twitter: / brodriguesco
Read my blog: www.brodrigues.co/
Find these videos useful? You can buy me a coffee to express your gratitude: www.buymeacoffee.com/brodrigu...
Learn R by reading my free ebook: b-rodrigues.github.io/modern_R/
Негізгі бет Ғылым және технология Don't write loops in R (part 2) with purrr::reduce
Пікірлер: 19