Postgres Convert String To Numeric In R