dwww Home | Show directory contents | Find package

# where() checks return values

    Code
      where(NA)
    Condition
      Error in `where()`:
      ! Can't convert `fn`, `NA`, to a function.

---

    Code
      select_loc(iris, where(~NA))
    Condition
      Error in `where()`:
      ! Predicate must return `TRUE` or `FALSE`, not `NA`.
    Code
      select_loc(iris, where(~1))
    Condition
      Error in `where()`:
      ! Predicate must return `TRUE` or `FALSE`, not a number.
    Code
      select_loc(iris, where(mean))
    Condition
      Error in `where()`:
      ! Predicate must return `TRUE` or `FALSE`, not a number.

Generated by dwww version 1.15 on Tue Jul 2 09:13:15 CEST 2024.