Removes all missing values from a input time series. This shortens the time series by
the number of missing values in the series. Should be handled with care, because this can affect
the seasonality of the time series. Seasonal patterns might be destroyed. Independent from the input, this
function only returns a vector. (the time information of a resulting time series object wouldn't be correct any more).
#Example 1: Remove all NAs#Create Time series with missing valuesx <- ts(c(2,3,NA,5,6,NA,7,8))
#Remove all NAsna.remove(x)
#Example 2: Remove all NAs in tsAirgapna.remove(tsAirgap)