Skip to content

Commit 885229b

Browse files
committed
Remove compound pipe from homepage
1 parent 1a35e1f commit 885229b

File tree

4 files changed

+0
-54
lines changed

4 files changed

+0
-54
lines changed

README.Rmd

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -128,24 +128,3 @@ iris %>%
128128
data.frame(z = rnorm(100)) %$%
129129
ts.plot(z)
130130
```
131-
132-
### Compound assignment pipe operations
133-
134-
There is also a pipe operator which can be used as shorthand notation
135-
in situations where the left-hand side is being "overwritten":
136-
137-
```{r, eval = FALSE}
138-
iris$Sepal.Length <-
139-
iris$Sepal.Length %>%
140-
sqrt()
141-
```
142-
143-
To avoid the repetition of the left-hand side immediately after the assignment
144-
operator, use the `%<>%` operator:
145-
146-
```{r}
147-
iris$Sepal.Length %<>% sqrt
148-
```
149-
150-
This operator works exactly like `%>%`, except the pipeline assigns the result
151-
rather than returning it. It must be the first pipe operator in a longer chain.

README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -123,25 +123,3 @@ data.frame(z = rnorm(100)) %$%
123123
```
124124

125125
![](man/figures/exposition-1.png)<!-- -->
126-
127-
### Compound assignment pipe operations
128-
129-
There is also a pipe operator which can be used as shorthand notation in
130-
situations where the left-hand side is being “overwritten”:
131-
132-
``` r
133-
iris$Sepal.Length <-
134-
iris$Sepal.Length %>%
135-
sqrt()
136-
```
137-
138-
To avoid the repetition of the left-hand side immediately after the
139-
assignment operator, use the `%<>%` operator:
140-
141-
``` r
142-
iris$Sepal.Length %<>% sqrt
143-
```
144-
145-
This operator works exactly like `%>%`, except the pipeline assigns the
146-
result rather than returning it. It must be the first pipe operator in a
147-
longer chain.

docs/index.html

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/figures/exposition-1.png

-2.5 KB
Loading

0 commit comments

Comments
 (0)