window.orderBy {SparkR} | R Documentation |
Creates a WindowSpec with the ordering defined.
window.orderBy(col, ...) ## S4 method for signature 'character' window.orderBy(col, ...) ## S4 method for signature 'Column' window.orderBy(col, ...)
## Not run:
##D ws <- window.orderBy("key1", "key2")
##D df1 <- select(df, over(lead("value", 1), ws))
##D
##D ws <- window.orderBy(df$key1, df$key2)
##D df1 <- select(df, over(lead("value", 1), ws))
## End(Not run)