Defines the frame boundaries, from start
(inclusive) to end
(inclusive).
rangeBetween(x, start, end)# S4 method for WindowSpec,numeric,numeric
rangeBetween(x, start, end)
a WindowSpec
boundary start, inclusive. The frame is unbounded if this is the minimum long value.
boundary end, inclusive. The frame is unbounded if this is the maximum long value.
a WindowSpec
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.
Other windowspec_method:
orderBy()
,
partitionBy()
,
rowsBetween()
# NOT RUN {
rangeBetween(ws, 0, 3)
# }
Run the code above in your browser using DataLab