Guest User

Untitled

a guest
Sep 14th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Why can I not read my file (using RPostgreSQL) if it is listed using dbListTables
  2. R> library(RPostgreSQL)
  3. Loading required package: DBI
  4. R> drv <- dbDriver("PostgreSQL")
  5. R> con <- dbConnect(drv, dbname="beancounter", user="edd", password="xxxxxx")
  6. R> dbListTables(con)
  7. [1] "beancounter" "cash" "fxprices" "indices" "meta"
  8. [6] "portfolio" "portfoliosold" "stockinfo" "stockprices"
  9. R> dbExistsTable(con, "cash")
  10. [1] TRUE
  11. R> dbExistsTable(con, 'cash')
  12. [1] TRUE
  13. R> dbExistsTable(con, 'Cash')
  14. [1] FALSE
  15. R> dbExistsTable(con, "Cash")
  16. [1] FALSE
  17. R> ccc <- dbReadTable(con, "cash")
  18. R> dim(ccc)
  19. [1] 24 7
  20. R>
Add Comment
Please, Sign In to add comment