Skip to content

Commit cff71bc

Browse files
committed
Mention data |> exclude(this | that | those)
1 parent cb54ec3 commit cff71bc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

008-dplyr-retain-and-exclude.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ In general, the following form of `filter()` can always be written as a much sim
351351

352352
```{r, eval = FALSE}
353353
data |> filter(!(this | that | those))
354+
data |> exclude(this | that | those)
354355
data |> exclude(this) |> exclude(that) |> exclude(those)
355356
```
356357

008-dplyr-retain-and-exclude.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ much simpler `exclude()`:
599599

600600
``` r
601601
data |> filter(!(this | that | those))
602+
data |> exclude(this | that | those)
602603
data |> exclude(this) |> exclude(that) |> exclude(those)
603604
```
604605

0 commit comments

Comments
 (0)