#=

You have n data vectors of equal length (rowcount ๐“‡)
๐ท๐‘Ž๐‘ก๐‘Žโ‚ .. ๐ท๐‘Ž๐‘ก๐‘Žแตข .. ๐ท๐‘Ž๐‘ก๐‘Žโ‚™
you apply a function (StatsBase.cor) of n==2 arguments
to subsequences of span 3 (over successive triple rows)

=#

using RollingFunctions

๐ท๐‘Ž๐‘ก๐‘Žโ‚ = [1, 2, 3, 4, 5]
๐ท๐‘Ž๐‘ก๐‘Žโ‚‚ = [5, 4, 3, 2, 1]

๐น๐‘ข๐‘›๐‘ = cor
๐‘†๐‘๐‘Ž๐‘› = 3

result = rolling(๐น๐‘ข๐‘›๐‘,๐ท๐‘Ž๐‘ก๐‘Žโ‚,๐ท๐‘Ž๐‘ก๐‘Žโ‚‚, ๐‘†๐‘๐‘Ž๐‘›)
#=
3-element Vector{Float64}:
  -1.0
  -1.0
  -1.0
=#