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