with_order: Run a function with one order, translating result back to...

View source: R/order-by.R

with_orderR Documentation

Run a function with one order, translating result back to original order

Description

This is used to power the ordering parameters of dplyr's window functions

Usage

with_order(order_by, fun, x, ...)

Arguments

order_by

vector to order by

fun

window function

x, ...

arguments to f


tidyverse/dplyr documentation built on Nov. 4, 2024, 2:44 a.m.