Skip to content

Commit 92f1533

Browse files
committed
updates to readme based on actual content of tutorial
1 parent 756a354 commit 92f1533

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Abstract
1+
# A purrr tutorial
22

3-
Happy R users purrr: using functional programming to solve iteration problems
3+
This repo currently contains the contents of the tutorial from rstudio::conf "Happy R users purrr"
4+
5+
## Abstract
46

5-
Code with a lot of duplication is harder to understand, troubleshoot and maintain. The goal of this tutorial is help you remove duplication in your code with two strategies: writing your own functions and using functions that write `for` loops for you.
7+
Happy R users purrr: using functional programming to solve iteration problems
68

7-
We'll assume you already know the mechanics of defining a function but give you some tips on when and how to write a function emphasizing that good functions aren't just correct, they are also understandable. Then we'll talk about using functions as inputs to other functions, a key idea in functional programming. In the rest of the tutorial you'll learn to use the functions in the `purrr` package that remove code that is duplicated across for loops. By the end of the tutorial you'll be writing code that is more readable and easier to update and you'll be ready to solve new iteration problems faster and with fewer mistakes.
9+
Code with a lot of duplication is harder to understand, troubleshoot and maintain. The goal of this tutorial is help you remove duplication in your code by using functions that write `for` loops for you.
810

9-
# Prerequisites
11+
You'll learn to use the functions in the `purrr` package to perform iterative tasks: tasks that look like "for each _____ do _____".
1012

11-
* You know how to define your own function, and have written a few.
12-
* You know how to write a for loop.
13-
* You have seen `sapply()` and `lapply()`, but it's OK if you don't use them (or don't know why you should use them).
13+
By the end of the tutorial you'll be writing code that is more readable and easier to update and you'll be ready to solve new iteration problems faster and with fewer mistakes.

0 commit comments

Comments
 (0)