Skip to content

Load a data from oracle database to R

2 messages · Gagan Pabla, Marc Schwartz

#
On Apr 23, 2009, at 12:18 PM, Gagan Pabla wrote:

            
Once you have established the connection to the Oracle server, you  
then need to perform a query against the database to get the data into  
R. So something like the following:

   temp <- sqlQuery(channel, "select * from temp")
   close(channel)

Now you will have a data frame in R called temp.

See ?sqlQuery after loading RODBC.

BTW, there is a r-sig-db list. More info here:

   https://stat.ethz.ch/mailman/listinfo/r-sig-db

HTH,

Marc Schwartz