R: Moving Average Pressure and Standard Deviation