I have a time series data frame consisting of 980 observations and 980 variables. There are a lot of NAs in the data set. I need to find the perfect interval with the most data (variables) in a given amount of observations. Let's say I want to limit my search to 50 observations (out of 980), how do I find the one observation-intervall that contains the most information (variables)? Preferably, I need to find an interval that has zero missing values.
Please find below a snippet of my data frame so that you can better understand what I mean:
I tried na.omit()
but then I end up with zero observations because apparently every observation contains at least one missing value (variable).