Exporting Table from R to PostgreSQL by RPostgreSQL

夙愿已清 提交于 2019-12-06 01:50:56

Table called "p25" can easily exported to the DB from the following code:

dbWriteTable(con, "p25",p25,overwrite = T )

The question is a little be confusing , but you can use sqldf package to perform sql queries

library(sqldf)
sqldf("select * from s_2 where temp > -1 ")

e.g : I just put your s_2 in a data.frame

> sqldf("select * from s_2 where temp < -2 ")
   temp      Datee    TIMEE
1 -2.08 2007-09-29 00:23:09
2 -2.12 2007-09-29 00:27:09
3 -2.18 2007-09-29 00:31:09
4 -2.04 2007-09-29 00:39:09
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!