Filtering with if_any() and if_all()

df2 <- tibble(x = 1:3, y = c(1, 2, NA), z = c(NA, 2, 3))
df2 |> filter(if_any(everything(), is.na))
## # A tibble: 2 × 3
##       x     y     z
##   <int> <dbl> <dbl>
## 1     1     1    NA
## 2     3    NA     3
df2 |> filter(if_all(everything(), \(x) !is.na(x)))
## # A tibble: 1 × 3
##       x     y     z
##   <int> <dbl> <dbl>
## 1     2     2     2