Skip to content

Commit

Permalink
Another example
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Aug 4, 2023
1 parent 35f1860 commit c736d7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions explicit-strategies.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ vctrs::vec_sort(x, direction = "asc")

It's unlikely that you'll ever need to implement another sorting direction, but I think it's easier to understand `direction = "asc"` than `decreasing = FALSE` at a glance.

Another example is `cols_vary` in `pivot_wider()`.

### Varying arguments

In more complicated cases, different strategies will require different arguments, so you'll need a bit more infrastructure.
Expand Down

0 comments on commit c736d7d

Please sign in to comment.