Releases: ipums/ipumsr
ipumsr 0.9.0
New features
-
This release adds comprehensive support for IPUMS IHGIS extract submission,
metadata retrieval, and data loading!As IPUMS IHGIS is an aggregate data
project alongside IPUMS NHGIS, many functions that previously were
NHGIS-specific have been generalized to accommodate both collections. This
includes the following new functions:-
read_ipums_agg()loads downloaded extracts for both NHGIS and IHGIS.
This replacesread_nhgis(), which is now deprecated.read_ipums_agg()also includes a newfile_encodingargument, as
IHGIS and NHGIS files often have different encoding. Typically,
the defaultfile_encodingshould load an aggregate data extract
file correctly. If not, you can adjust the encoding here. -
define_extract_agg()defines extract requests for both NHGIS and
IHGIS. Use thecollectionargument to specify the data collection for
a given extract. This replacesdefine_extract_nhgis(), which is now
deprecated. -
get_metadata_catalog()retrieves summary metadata about NHGIS and
IHGIS data sources.get_metadata()retrieves
detailed metadata about a particular NHGIS or IHGIS data source. These
functions replaceget_metadata_nhgis(), which is now deprecated.
-
-
Adds
read_ihgis_codebook()to load codebook files containing
file-level metadata for downloaded IHGIS extracts. This function is
currently experimental. -
Enables monetary value adjustment for supported IPUMS USA and IPUMS
CPS variables. Use theadjust_monetary_valuesargument tovar_spec()
to include an additional adjusted variable in your extract. See the
IPUMS CPS
and IPUMS USA
documentation for more information on monetary adjustment.
Function + argument retirements
-
data_layerandshape_layerarguments are now defunct. In cases
where this functionality is still supported, please use the
file_selectargument instead. -
get_recent_extracts_info_list(),get_recent_extracts_info_tbl(),
andextract_tbl_to_list()are now defunct. Useget_extract_history()
to obtain a list of previously-submitted extracts. -
The ability to read files through directories is now defunct. This
affects most reader functions. If you have unzipped an IPUMS extract
archive, please provide the path to the individual file you wish
to load, not its containing directory. -
projectandvar_labelarguments inipums_website()are now
defunct.
ipumsr 0.8.2
-
Adds codebook files to output of
ipums_list_files()(#85). -
Removes deprecated
ipums_list_files()argumentsdata_layer,
shape_layer, andraster_layer. Usefile_selectinstead. Also removes
support for listing raster file types (#85). -
The
"*"wildcard is no longer required to select allgeographic_extents
indefine_extract_nhgis(). Instead, all available geographic extents
are selected by default. The"*"syntax is still supported. -
Adds
download_supplemental_data()to enable access to supplemental
data files via the IPUMS API (#83). -
Fixed bug in
shape_join.Rthat would always give the result of a
right join no matter whetheripums_shape_left_join()or
ipums_shape_right_join()was used (#82) (thanks @JiaZhang42!).
ipumsr 0.8.1
Minor improvements and fixes
- Small fix to vignette that was previously throwing an error in R CMD Check
with--no-manualand--no-build-vignettesoptions (#80).
ipumsr 0.8.0
Breaking changes + deprecations
-
Collection-specific definition functions for IPUMS microdata projects
have been deprecated in favor ofdefine_extract_micro(). This
streamlines syntax across all supported microdata collections. Use the
collectionargument to specify the collection for your
microdata extract.IPUMS NHGIS extracts are still created with
define_extract_nhgis(). -
Previously deprecated methods for retrieving extract history are now
defunct. Useget_extract_history()instead.
New features
-
Adds support for IPUMS API extract endpoints for IPUMS Time Use and
IPUMS Health Surveys projects! This includes:-
IPUMS Time Use
-
IPUMS ATUS (
"atus") -
IPUMS AHTUS (
"ahtus") -
IPUMS MTUS (
"mtus")
-
-
IPUMS Health Surveys
-
IPUMS NHIS (
"nhis") -
IPUMS MEPS (
"meps")
-
-
-
Adds support for new rectangularization options for certain
microdata collections. Use therectagular_onargument in your
extract definition to rectangularize on records other than person
("P") records. -
Time use variables can be included in IPUMS Time Use extracts. Use
thetu_var_spec()helper with thetime_use_variablesargument of
define_extract_micro()to create a time use variable
specification.This includes both IPUMS-defined and user-defined time use variables. Note
that user-defined time use variables cannot currently be created via API.
However, if you have defined a time use variable through the IPUMS web
interface, you can request it in an extract via API. -
Sample members can be specified in IPUMS ATUS extracts. Use the
sample_membersargument ofdefine_extract_micro()to do so. -
"household_only"is now a supported value fordata_structurein
IPUMS USA extracts.
Minor improvements and fixes
- Fixes bug in
add_to_extract.micro_extract()that caused an error if a user
attempted to update the value ofdata_quality_flagsin a detailed variable
specification.
ipumsr 0.7.2
- Fix for CRAN checks
ipumsr 0.7.1
- Minor updates to README and vignettes
ipumsr 0.7.0
Function retirements
-
ipumsr no longer suggests raster, rgdal, and sp (#23). Removing these
dependencies requires the retirement of several previously deprecated
functions:- All
read_terra_*()functions read_ipums_sp()(useread_ipums_sf()to load spatial data in sf format)read_ipums_codebook()(useread_nhgis_codebook()to load an NHGIS
codebook)ipums_list_*()helper functions (instead, useipums_list_files())read_nhgis_sf()andread_nhgis_sp()(instead, useread_ipums_sf()and
read_nhgis()to load spatial and tabular data separately, then join
with anipums_shape_join_*()function)
- All
Other updates
-
Fixes bug in
ipums_view()where content would not display properly in
viewer pane (#19) -
RStudio is now explicitly required to launch files in the viewer pane using
ipums_view(). R console users can still generate stand-alone HTML files
that can be viewed in a different browser. -
Updates the UI and fixes various bugs in
ipums_website()(#54):- Accepted project names are now consistent with those provided in
ipums_ddiobjects. Shorthand project names as used by the IPUMS API are
also accepted. - Users can now use the same syntax regardless of whether providing
anipums_ddiobject or a project name. Theprojectargument has been
deprecated. - MacOS is now supported
- The
varargument is no longer required. Omittingvarwill launch the
URL to the homepage for the specified IPUMS project. - The
homepage_if_missingargument now defaults toFALSE. - The
var_labelargument has been deprecated
- Accepted project names are now consistent with those provided in
-
Updates IPUMS projects listed in
ipums_data_collections(). -
Various documentation updates
ipumsr 0.6.3
-
The ability to read an IPUMS DDI file contained within a zip archive using
read_ipums_ddi()has been deprecated. Users must now load DDI files by
providing the direct path to the uncompressed .xml file.This resolves an inconsistency between the behavior
ofread_ipums_micro_*()functions when provided a DDI file path as compared to
anipums_ddiobject created withread_ipums_ddi(). -
The ability to read IPUMS files by providing the path to their containing
directory has been deprecated. This affects:read_nhgis()read_ipums_sf()read_nhgis_codebook()read_ipums_ddi()ipums_list_files()
These functions now require either a zip archive (with the exception of
read_ipums_ddi()—see above) or a direct file path as input.This has the consequence that
read_ipums_sf()withbind_multiple = TRUE
requires a zip archive as input if multiple files are to be read and combined. -
Documentation updates for clarity
ipumsr 0.6.2
- Fixes for CRAN checks.
ipumsr 0.6.1
Fixes for CRAN checks