Interactive window operations

vg_window_sum(x, frame = list(NULL, 0), sort = NULL)

vg_window_mean(x, frame = list(NULL, 0), sort = NULL)

vg_window_rank(x, frame = list(NULL, 0), sort = NULL)

vg_window_count(x, frame = list(NULL, 0), sort = NULL)

vg_cumsum(x, sort = NULL)

vg_cummean(x, sort = NULL)

vg_row_number(x, sort = NULL)

vg_rank(x, sort = NULL)

vg_dense_rank(x, sort = NULL)

vg_percent_rank(x, sort = NULL)

vg_cume_dist(x, sort = NULL)

vg_ntile(x, n = 1, sort = NULL)

vg_lead(x, n = 1, sort = NULL)

vg_lag(x, n = 1, sort = NULL)

Arguments

x

A data variable, used in conjunction with dplyr::mutate().

frame

A list/vector of two elements to indicate the number of data values preceding and following the current data object. NULL gives unbounded elements proceding or following the current position.

sort

A variable for sorting data within a window in ascending order. - before the variable gives descending order. NULL disables sorting.

n

The number of elements.