Description Usage Arguments Note Examples
Creates a WindowSpec with the ordering defined.
1 2 3 4 5 | ## S4 method for signature 'character'
windowOrderBy(col, ...)
## S4 method for signature 'Column'
windowOrderBy(col, ...)
|
col |
A column name or Column by which rows are ordered within windows. |
... |
Optional column names or Columns in addition to col, by which rows are ordered within windows. |
windowOrderBy(character) since 2.0.0
windowOrderBy(Column) since 2.0.0
1 2 3 4 5 6 7 8 | ## Not run:
ws <- windowOrderBy("key1", "key2")
df1 <- select(df, over(lead("value", 1), ws))
ws <- windowOrderBy(df$key1, df$key2)
df1 <- select(df, over(lead("value", 1), ws))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.