Compute ACF Summary
compute_acf_summary.RdComputes autocorrelation function values and returns them as a tibble. Useful for examining temporal dependence structure in buoy data.
Examples
set.seed(1)
data <- data.frame(
time = seq(as.POSIXct("2020-01-01"), by = "hour", length.out = 1000),
wave_height = 2 + sin(seq(0, 20, length.out = 1000)) + rnorm(1000, 0, 0.3)
)
acf_result <- compute_acf_summary(data)
head(acf_result)
#> # A tibble: 6 × 2
#> lag acf
#> <int> <dbl>
#> 1 1 0.826
#> 2 2 0.827
#> 3 3 0.826
#> 4 4 0.823
#> 5 5 0.830
#> 6 6 0.812