SparkR (version 2.1.2)

orderBy: Ordering Columns in a WindowSpec

Description

Defines the ordering columns in a WindowSpec.

Usage

orderBy(x, col, ...)

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

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

Arguments

x

a WindowSpec

col

a character or Column indicating an ordering column

...

additional sorting fields

Value

A WindowSpec.

See Also

See arrange for use in sorting a SparkDataFrame

Other windowspec_method: partitionBy, rangeBetween, rowsBetween

Examples

Run this code
# NOT RUN {
  orderBy(ws, "col1", "col2")
  orderBy(ws, df$col1, df$col2)
# }

Run the code above in your browser using DataLab