handleNA function

Handles emtpy and NA data in a multivariate time series.