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: ws <- window.partitionBy("key1", "key2") df1 <- select(df, over(lead("value", 1), ws)) ws <- window.partitionBy(df$key1, df$key2) df1 <- select(df, over(lead("value", 1), ws)) ## End(Not run)