How to access databases from R
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
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.