Status:Closed    Asked:Sep 13, 2013 - 10:14 AM

Is it possibel to use ipums data in R?

I don't have access to other software besides R. I was wondering if there was a command file to use the .DAT file in R, or if there was a way to adjust one of the other files to use in R.


Do you have the same question? Follow this Question

Staff Answer

While we do not provide support for using IPUMS data in R, it is possible, and some users do use R to analyze IPUMS data. One common approach is to request a CSV file from us (click 'change' to the right of 'data format' before submitting your extract request). Then, users often import into a database such as SQLite using a package such as sqldf. You can find a general code template for doing this here.


Sep 13, 2013 - 10:31 AM

Report it


Here's what I do:

(1) choose "STATA" as "data format" in, for example,

(2) in R:


df <- read.dta("ipums_filename.dta")

This reads the ipums file into a dataframe named "df".


Jan 28, 2014 - 10:58 AM

Report it


Do SAS and STATA "command files" transform any "Fixed Width Text Files/Data" ...
Why can't I extract the .dat file from the gz file with WinZip?
I can not readin dat file from IPUMs.
opening .dat IPUMS file in stata
My last few data extracts have not been showing a link to the command file fo...
Login   |   Register

Recently Active Members

View More »

Share |