Skip to content

Commit

Permalink
Fixed minor grammar issue in action-workflow.Rmd (#504)
Browse files Browse the repository at this point in the history
This commit contains a suggested grammar fix for the 5.2.4 Case study
section.

Co-authored-by: Hadley Wickham <[email protected]>
  • Loading branch information
collinberke and hadley authored Oct 18, 2024
1 parent bf442e2 commit 4e2954e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action-workflow.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ head(sales$TERRITORY == "EMEA", 25)
```

These missing values become missing rows when I use them to subset the `sales` data frame with `[`; any missing values in input will be preserved in the output.
There are lots of way to resolve this problem but I decided to use `subset()`[^action-workflow-3] because automatically removes missing values and reduces the number of times I need to type `sales`. I then double checked this actually worked:
There are lots of ways to resolve this problem, but I decided to use `subset()`[^action-workflow-3] because it automatically removes missing values and reduces the number of times I need to type `sales`. I then double checked this actually worked:

[^action-workflow-3]: I'm using `subset()` so that my app doesn't require any other packages.
In a bigger app, I'd probably prefer `dplyr::filter()` just because I'm a little more familiar with its behaviour.
Expand Down

0 comments on commit 4e2954e

Please sign in to comment.