Postgres Replace Function In Rstudio