| 1 | # where() checks return values |
| 2 | |
| 3 | Code |
| 4 | where(NA) |
| 5 | Condition |
| 6 | Error in `where()`: |
| 7 | ! Can't convert `fn`, a logical vector, to a function. |
| 8 | |
| 9 | --- |
| 10 | |
| 11 | Code |
| 12 | select_loc(iris, where(~NA)) |
| 13 | Condition |
| 14 | Error in `where()`: |
| 15 | ! Predicate must return `TRUE` or `FALSE`, not `NA`. |
| 16 | Code |
| 17 | select_loc(iris, where(~1)) |
| 18 | Condition |
| 19 | Error in `where()`: |
| 20 | ! Predicate must return `TRUE` or `FALSE`, not a number. |
| 21 | Code |
| 22 | select_loc(iris, where(mean)) |
| 23 | Condition |
| 24 | Error in `where()`: |
| 25 | ! Predicate must return `TRUE` or `FALSE`, not a number. |
| 26 |