cume_dist {SparkR}R Documentation

cume_dist

Description

Window function: returns the cumulative distribution of values within a window partition, i.e. the fraction of rows that are below the current row.

Usage

cume_dist(x)

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

Details

N = total number of rows in the partition cume_dist(x) = number of values before (and including) x / N

This is equivalent to the CUME_DIST function in SQL.

See Also

Other window_funcs: dense_rank, lag, lead, ntile, percent_rank, rank, row_number

Examples

## Not run: cume_dist()

[Package SparkR version 2.0.0 Index]