rowAny: Helper for filtering on any logical in a row

Description Usage Arguments Value Examples

View source: R/rowAny.R

Description

Helper function for filtering on any TRUE in a row; intended as a replacement for the depreciated any_vars() syntax.

Usage

1
rowAny(x)

Arguments

x

logical

Value

logical

Examples

1
2
3
4
library(tidyverse)
library(rzdr)
diamonds %>%
  filter(rowAny(across(c(x, y, z), ~ .x > 0)))

zdelrosario/rzdr documentation built on Aug. 12, 2020, 5:10 a.m.