This changes timestamps only. It never interpolates or reorders samples.
Usage
dejitter(
timestamps,
nominal_srate,
segments = NULL,
anchor = c("least_squares", "first"),
max_residual_seconds = Inf
)Examples
raw <- c(10.001, 10.010, 10.021, 10.029)
regular <- dejitter(raw, nominal_srate = 100)
as.numeric(regular)
#> [1] 10.00025 10.01025 10.02025 10.03025