This is an internal function.
static_roll(df, win)
df
data.frame object.
win
numeric. width in number of rows
a data.table object