AnthroSpace

www.stanford.edu/~cengel/blog

Read data from MS Access into R on Mac OS 10.5

To read tables that are within a Microsoft Access Database, R needs the mdb-tools executables mdb-tables, mdb-schema, and mdb-export to be installed and in the system path. Since compiling those is not trivial, I have provided the binaries here, which I compiled from mdb-tools version 0.6pre1. Support is for Access 97 (Jet 3) and Access 2000/2002 (JET4) formats.

USE AT YOUR OWN RISK. You need to know what you are doing.

  1. Download the necessary mdb-tools binaries and untar in /usr/local/bin.
  2. Download the mdb libraries and untar in /usr/local/lib.
  3. If you don’t have those, download glibs and intllibs and untar in /usr/local/lib.

For testing, you can download a sample MS Access Database from anywhere, for example here.

In R you need to load library (Hmisc) and use mdb.get.

No TweetBacks yet. (Be the first to Tweet this post)

1 Comment

  1. This worked for me, thanks! Tried compiling from source and never could get it to work, so I’m glad this option is here.

Leave a Response

Please note: comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.