Reading from other sources

Jeffrey Leek
Johns Hopkins Bloomberg School of Public Health

There is a package for that

  • Roger has a nice video on how there are R packages for most things that you will want to access.
  • Here I'm going to briefly review a few useful packages
  • In general the best way to find out if the R package exists is to Google "data storage mechanism R package"
    • For example: "MySQL R package"

Interacting more directly with files

  • file - open a connection to a text file
  • url - open a connection to a url
  • gzfile - open a connection to a .gz file
  • bzfile - open a connection to a .bz2 file
  • ?connections for more information
  • Remember to close connections

foreign package

Examples of other database packages

Reading images

Reading GIS data

Reading music data