Skip to content

Commit

Permalink
Update data-transform.qmd (hadley#1073)
Browse files Browse the repository at this point in the history
A well written chapter. Just a very minor fix.
  • Loading branch information
PursuitOfDataScience authored Aug 18, 2022
1 parent ebf42ef commit 6d8834d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-transform.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ But before we discuss their individual differences, it's worth stating what they

3. The result is always a new data frame.

Because the first argument is a data frame and the output is a data frame, dplyr verbs work work well with the pipe, `|>`.
Because the first argument is a data frame and the output is a data frame, dplyr verbs work well with the pipe, `|>`.
The pipe takes the thing on its left and passes it along to the function on its right so that `x |> f(y)` is equivalent to `f(x, y)`, and `x |> f(y) |> g(z)` is equivalent to into `g(f(x, y), z)`.
The easiest way to pronounce the pipe is "then".
That makes it possible to get a sense of the following code even though you haven't yet learnt the details:
Expand Down

0 comments on commit 6d8834d

Please sign in to comment.