Description Usage Arguments Value Examples
Pluck a value based on other criteria
1 | pluck_when(.x, .p, .i = 1, .else = NA)
|
.x |
Vector from which to select value. |
.p |
Logical expression. |
.i |
First TRUE index to return. |
.else |
If no matches from .p, value to return. |
A vector of length 1.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.