Evaluate a bitwise OR operation
Description
This function is syntactic sugar for col(names)$any()
.
Usage
pl$any(..., ignore_nulls = TRUE)
Arguments
…
|
Name(s) of the columns to use in the aggregation. |
ignore_nulls
|
If TRUE (default), ignore null values. If
FALSE ,
Kleene
logic is used to deal with nulls: if the column contains any null
values and no TRUE values, the output is null.
|
Value
A polars expression
Examples
library("polars")
df <- pl$DataFrame(
a = c(TRUE, FALSE, TRUE),
b = c(FALSE, FALSE, FALSE)
)
df$select(pl$any("a"))
#> shape: (1, 1)
#> ┌──────┐
#> │ a │
#> │ --- │
#> │ bool │
#> ╞══════╡
#> │ true │
#> └──────┘