| row_number {SparkR} | R Documentation | 
Window function: returns a sequential number starting at 1 within a window partition.
row_number(x = "missing") ## S4 method for signature 'missing' row_number()
| x | empty. Should be used with no argument. | 
This is equivalent to the ROW_NUMBER function in SQL.
row_number since 1.6.0
Other window_funcs: cume_dist,
dense_rank, lag,
lead, ntile,
percent_rank, rank
## Not run: 
##D   df <- createDataFrame(mtcars)
##D   ws <- orderBy(windowPartitionBy("am"), "hp")
##D   out <- select(df, over(row_number(), ws), df$hp, df$am)
## End(Not run)