
Last chance! 50% off unlimited learning
Sale ends in
This is useful if you want to fill in missing values that should have
been observed but weren't. For example, full_seq(c(1, 2, 4, 6), 1)
will return 1:6
.
full_seq(x, period, tol = 1e-06)
A numeric vector.
Gap between each observation. The existing data will be checked to ensure that it is actually of this periodicity.
Numerical tolerance for checking periodicity.
# NOT RUN {
full_seq(c(1, 2, 4, 5, 10), 1)
# }
Run the code above in your browser using DataLab