calc_acf: Auto-correlation computation

View source: R/calc_acf.r

calc_acfR Documentation

Auto-correlation computation

Description

Computation of the auto-correlation function (ACF) or the cross-correlation function (CCF), if the argument 'y' is provided.

Usage

calc_acf(x, y = NULL)

Arguments

x

A numeric vector

y

A numeric vector (default = NULL), that will be the value to compute the CCF

Value

A tibble (lag x 2) with:
- ACF/CCF.
- lag.

Examples


x <- rnorm(100)

calc_acf(x)

y <- rexp(100)

calc_acf(x,y)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.