window.partitionBy {SparkR}R Documentation

window.partitionBy

Description

Creates a WindowSpec with the partitioning defined.

Usage

window.partitionBy(col, ...)

## S4 method for signature 'character'
window.partitionBy(col, ...)

## S4 method for signature 'Column'
window.partitionBy(col, ...)

Examples

## Not run: 
##D   ws <- window.partitionBy("key1", "key2")
##D   df1 <- select(df, over(lead("value", 1), ws))
##D 
##D   ws <- window.partitionBy(df$key1, df$key2)
##D   df1 <- select(df, over(lead("value", 1), ws))
## End(Not run)

[Package SparkR version 2.0.0 Index]