Hi,
see Event mixing with RDataFrame for an example of a simple sliding window implementation.
Cheers, Enrico