GithubHelp home page GithubHelp logo

jaeyk / r-functional-programming Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dlab-berkeley/r-functional-programming

1.0 0.0 0.0 7.08 MB

The joy and power of functional programming in R

HTML 99.97% JavaScript 0.01% CSS 0.02% R 0.01%

r-functional-programming's Introduction

R-Functional-Programming

Workshop Description

This workshop helps you to step up your R skills with functional programming. The purrr package provides easy-to-use tools to automate repeated things in your entire R workflow (e.g., wrangling, modeling, and visualization). The end result is cleaner, faster, more readable and extendable code. I highly recommend you to take this workshop (1) if you still write copy-and-paste code, (2) exclusively rely on for loops for automation, and (3) want to know about the joy and power of R functional programming.

Learning objectives

  1. How to use purrr to automate workflow in a cleaner, faster, and more extendable way [Notebook]

  2. How to use map2() and pmap() to avoid writing nested loops. [Notebook]

  3. How to use map() and glue() to automate creating multiple plots [Notebook]

  4. How to use reduce() to automate joining multiple dataframes [Notebook]

  5. How to use slowly() and future_ to make automation process either slower or faster [Notebook]

  6. How to use safely() and possibly() to make error handling easier [Notebook]

Prerequisites

  • Some experience with writing functions in R

Setup

Launch the Binder. Please do so before attending the worskshop as it would take a while (especially, if you do it for the first time).


Contributions to these materials by:

This work is licensed under a Creative Commons Attribution 4.0 International License.

r-functional-programming's People

Contributors

asteves avatar jaeyk avatar averysaurus avatar

Stargazers

James Vizzard avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.