sliding_cor {dvmisc} | R Documentation |
Moving Correlations as Short Vector Slides Across Long Vector
Description
Uses C++ code for efficiency.
Usage
sliding_cor(short, long)
Arguments
short |
Numeric vector. |
long |
Numeric vector. |
Value
Numeric vector.
Examples
short <- rnorm(4)
long <- rnorm(10)
sliding_cor(short, long)
[Package dvmisc version 1.1.4 Index]