How to access databases from R

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

From his presentation at the Greater Boston useR Group[*], R user Jeffrey Breen has shared some useful slides detailing how to bring data from relational databases like MySQL and Oracle. In fact, data from just about any relational database is accessible from R by sending an SQL query to the standard ODBC or JDBC interfaces. R packages also offer other handy tricks, like being able to loop R code over the elements of a SQL result set. Even if you aren't using a relational database, you can still perform SQL queries on R data directly. Check out Jeff's slides at the link below, especially slide 10 which includes links to many useful database-access resources for R.

Greater Boston useR Group: useR Vignette – Accessing Databases from R – 20110504 (Jeffrey Breen)

[*] Proudly sponsored by Revolution Analytics

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)