rangeBetween {SparkR}R Documentation

rangeBetween

Description

Defines the frame boundaries, from start (inclusive) to end (inclusive).

Usage

## S4 method for signature 'WindowSpec,numeric,numeric'
rangeBetween(x, start, end)

rangeBetween(x, start, end)

Arguments

x

a WindowSpec

start

boundary start, inclusive. The frame is unbounded if this is the minimum long value.

end

boundary end, inclusive. The frame is unbounded if this is the maximum long value.

Details

Both start and end are relative from the current row. For example, "0" means "current row", while "-1" means one off before the current row, and "5" means the five off after the current row.

Value

a WindowSpec

Note

rangeBetween since 2.0.0

See Also

Other windowspec_method: orderBy, orderBy, orderBy, orderBy,WindowSpec,Column-method, orderBy,WindowSpec,character-method; partitionBy, partitionBy, partitionBy,WindowSpec-method; rowsBetween, rowsBetween, rowsBetween,WindowSpec,numeric,numeric-method

Examples

## Not run: 
##D   rangeBetween(ws, 0, 3)
## End(Not run)

[Package SparkR version 2.1.1 Index]