partitionBy {SparkR}R Documentation

partitionBy

Description

Defines the partitioning columns in a WindowSpec.

Usage

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

partitionBy(x, ...)

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, orderBy, orderBy, orderBy,WindowSpec,Column-method, orderBy,WindowSpec,character-method; rangeBetween, rangeBetween, rangeBetween,WindowSpec,numeric,numeric-method; rowsBetween, rowsBetween, rowsBetween,WindowSpec,numeric,numeric-method

Examples

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

[Package SparkR version 2.0.2 Index]