Sum all values.
Description
Syntactic sugar for pl$col(…)$sum()
.
Usage
pl$sum(...)
Arguments
…
|
Characters indicating the column names, passed to pl$col() .
See ?pl_col for details.
|
Value
Expr
See Also
-
\
$sum() -
pl$sum_horizontal()
Examples
#> shape: (1, 1)
#> ┌───────┐
#> │ col_a │
#> │ --- │
#> │ i32 │
#> ╞═══════╡
#> │ 3 │
#> └───────┘
#> shape: (1, 2)
#> ┌───────┬───────┐
#> │ col_a ┆ col_b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═══════╪═══════╡
#> │ 3 ┆ 7 │
#> └───────┴───────┘
#> shape: (1, 2)
#> ┌───────┬───────┐
#> │ col_a ┆ col_b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═══════╪═══════╡
#> │ 3 ┆ 7 │
#> └───────┴───────┘