Postgresql Standard Deviation Function In R