The ipumsr package helps import IPUMS extracts from the IPUMS website into R. IPUMS provides census and survey data from around the world integrated across time and space. IPUMS integration and documentation makes it easy to study change, conduct comparative research, merge information across data types, and analyze individuals within family and community context. Data and services are available free of charge.
The ipumsr package can be installed by running the following command:
Or, you can install the development version using the following commands:
if (!require(devtools)) install.packages("devtools") devtools::install_github("mnpopcenter/ipumsr")
The vignettes are a great place to learn more about ipumsr and IPUMS data:
For a more detailed look at some of the features, see these vignettes:
Or to see examples of how to work through data from particular projects, see these vignettes:
You can access them from R with the
vignette() command (eg
If you are installing from github and want the vignettes, you’ll need to run the following commands first:
devtools::install_github("mnpopcenter/ipumsr/ipumsexamples") devtools::install_github("mnpopcenter/ipumsr", build_vignettes = TRUE)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.