`duration_spanning_seq()`

generates a regular sequence along the span of `x`

,
i.e. along `[min(x), max(x)]`

.

## Details

Missing values are automatically removed before the sequence is generated.

If you need more precise sequence generation, call `range()`

and `seq()`

directly.

## Examples

```
x <- duration_days(c(1, 5, 2))
duration_spanning_seq(x)
#> <duration<day>[5]>
#> [1] 1 2 3 4 5
# Missing values are removed before the sequence is created
x <- vctrs::vec_c(NA, x, NA)
duration_spanning_seq(x)
#> <duration<day>[5]>
#> [1] 1 2 3 4 5
```