Remove NA values in ts-boxable objects, turning explicit into implicit missing values.
ts_na_omit(x)
x | ts-boxable time series, an object of class |
---|
a ts-boxable time series, with the same class as the input.
Note that internal NAs in ts
time series will not be removed, as this
conflicts with the regular structure.
ts_regular, for the opposite, turning implicit into explicit missing values.
#> Jan Feb Mar Apr May Jun #> 1949 112 NA 132 NA 121 135#> time value #> 1 1949-01-01 112 #> 2 1949-02-01 NA #> 3 1949-03-01 132 #> 4 1949-04-01 NA #> 5 1949-05-01 121 #> 6 1949-06-01 135#> time value #> 1 1949-01-01 112 #> 2 1949-02-01 NA #> 3 1949-03-01 132 #> 4 1949-04-01 NA #> 5 1949-05-01 121 #> 6 1949-06-01 135#> time value #> 1 1949-01-01 112 #> 2 1949-03-01 132 #> 3 1949-05-01 121 #> 4 1949-06-01 135 #> 5 1949-07-01 148 #> 6 1949-08-01 148