partitionBy {SparkR}R Documentation

partitionBy

Description

Defines the partitioning columns in a WindowSpec.

Usage

partitionBy(x, ...)

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

Arguments

x

a WindowSpec.

...

additional column(s) to partition on.

col

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

Value

A WindowSpec.

Note

partitionBy(WindowSpec) since 2.0.0

See Also

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

Examples



## Not run: 
##D   partitionBy(ws, "col1", "col2")
##D   partitionBy(ws, df$col1, df$col2)
## End(Not run)




[Package SparkR version 3.2.4 Index]