powered by
Defines the partitioning columns in a WindowSpec.
partitionBy(x, ...)# S4 method for WindowSpec partitionBy(x, col, ...)
# S4 method for WindowSpec partitionBy(x, col, ...)
a WindowSpec.
additional column(s) to partition on.
a column to partition on (described by the name or Column).
A WindowSpec.
Other windowspec_method: orderBy(), rangeBetween(), rowsBetween()
orderBy()
rangeBetween()
rowsBetween()
# NOT RUN { partitionBy(ws, "col1", "col2") partitionBy(ws, df$col1, df$col2) # }
Run the code above in your browser using DataLab