Error when creating exponential moving average with NA values
I am attempting to create an exponential moving average similar to the simple moving average like:
I am attempting to create an exponential moving average similar to the simple moving average like: