Sebastian Sauer shows off several ways of loading data into R:
Importing data into R can cause headaches for newbies. For some, the concept of relative and absolute paths is new. That’s why I compiled here some recommendations on how to important data into R and on how to ditch the “what’s my path” problem.
Click through for some notes. This post focused on files rather than databases, though that’s a very common way of loading data as well.