window.partitionBy {SparkR} | R Documentation |
Creates a WindowSpec with the partitioning defined.
window.partitionBy(col, ...) ## S4 method for signature 'character' window.partitionBy(col, ...) ## S4 method for signature 'Column' window.partitionBy(col, ...)
## 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)