row_number {SparkR}R Documentation

row_number

Description

Window function: returns a sequential number starting at 1 within a window partition.

Usage

## S4 method for signature 'missing'
row_number()

row_number(x)

Details

This is equivalent to the ROW_NUMBER function in SQL.

See Also

Other window_funcs: cume_dist, cume_dist; dense_rank, dense_rank; lag, lag; lead, lead; ntile, ntile; percent_rank, percent_rank; rank, rank

Examples

## Not run: row_number()

[Package SparkR version 1.6.3 Index]