calc_acf | R Documentation |
Computation of the auto-correlation function (ACF) or the cross-correlation function (CCF), if the argument 'y' is provided.
calc_acf(x, y = NULL)
x |
A numeric vector |
y |
A numeric vector (default = NULL), that will be the value to compute the CCF |
A tibble (lag x 2) with:
- ACF/CCF.
- lag.
x <- rnorm(100)
calc_acf(x)
y <- rexp(100)
calc_acf(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.