Skip to content

Functions Accessing Databases

2 messages · Bob Roberts, Bart Joosen

#
Hi,

There seems to be something wrong with your function getinfo.

Try first to substitute your dbGetQuery by a print statement, so that you
can see what is going on:
getinfo=function(t){print(the SQL query)}
allinfo=sapply(c(1985:2007),getinfo)

If these results look good, you can change your function back to
dbGetQuery(con, ....)
If not, show your results, and we will look again

Bart
Bob Roberts-2 wrote: