partitionBy: partitionBy

Description Usage Arguments Value Note See Also Examples

Description

Defines the partitioning columns in a WindowSpec.

Usage

1
2
## S4 method for signature 'WindowSpec'
partitionBy(x, col, ...)

Arguments

x

a WindowSpec.

col

a column to partition on (desribed by the name or Column).

...

additional column(s) to partition on.

Value

A WindowSpec.

Note

partitionBy(WindowSpec) since 2.0.0

See Also

Other windowspec_method: orderBy(), rangeBetween(), rowsBetween()

Examples

1
2
3
4
5
## Not run: 
  partitionBy(ws, "col1", "col2")
  partitionBy(ws, df$col1, df$col2)

## End(Not run)

danzafar/tidyspark documentation built on Sept. 30, 2020, 12:19 p.m.