orderBy {SparkR}R Documentation

Ordering Columns in a WindowSpec

Description

Defines the ordering columns in a WindowSpec.

Usage

## S4 method for signature 'WindowSpec,character'
orderBy(x, col, ...)

## S4 method for signature 'WindowSpec,Column'
orderBy(x, col, ...)

orderBy(x, col, ...)

Arguments

x

a WindowSpec

col

a character or Column indicating an ordering column

...

additional sorting fields

Value

A WindowSpec.

Note

orderBy(WindowSpec, character) since 2.0.0

orderBy(WindowSpec, Column) since 2.0.0

See Also

See arrange for use in sorting a SparkDataFrame

Other windowspec_method: partitionBy, partitionBy, partitionBy,WindowSpec-method; rangeBetween, rangeBetween, rangeBetween,WindowSpec,numeric,numeric-method; rowsBetween, rowsBetween, rowsBetween,WindowSpec,numeric,numeric-method

Examples

## Not run: 
##D   orderBy(ws, "col1", "col2")
##D   orderBy(ws, df$col1, df$col2)
## End(Not run)

[Package SparkR version 2.0.2 Index]