Skip to content

Indicate if an expression has multiple outputs

Source code

Description

Indicate if an expression has multiple outputs

Usage

<Expr>$meta$has_multiple_outputs()

Value

Boolean

Examples

library("polars")

e = (pl$col("alice") + pl$col("eve"))$alias("bob")
e$meta$has_multiple_outputs()
#> [1] FALSE
# pl$all() select multiple cols to modify them, so it has multiple outputs
pl$all()$meta$has_multiple_outputs()
#> [1] TRUE