lehdr: Grab Longitudinal Employer-Household Dynamics (LEHD) Flat Files

Designed to query Longitudinal Employer-Household Dynamics (LEHD) workplace/residential association and origin-destination flat files and optionally aggregate Census block-level data to block group, tract, county, or state. Also provides analytical functions for commute flow statistics, longitudinal change, and earnings tier distributions. Data comes from the LODES FTP server <https://lehd.ces.census.gov/data/lodes/LODES8/>.

Version: 1.2.0
Depends: R (≥ 4.1.0)
Imports: dplyr, glue, httr2, magrittr, readr, rlang, stringr, tidyr
Suggests: ggplot2, knitr, pkgdown, rmarkdown, sf, testthat (≥ 3.0.0), tigris, withr
Published: 2026-08-22
DOI: 10.32614/CRAN.package.lehdr
Author: Jamaal Green ORCID iD [cre, aut], Liming Wang [aut], Dillon Mahmoudi ORCID iD [aut], Matthew Rogers [ctb], Kyle Walker [ctb], Eli Pousson ORCID iD [ctb]
Maintainer: Jamaal Green <jamaal.green at gmail.com>
BugReports: https://github.com/jamgreen/lehdr/issues/
License: MIT + file LICENSE
URL: https://jamgreen.github.io/lehdr/, https://github.com/jamgreen/lehdr/
NeedsCompilation: no
Language: en
Citation: lehdr citation info
Materials: README
CRAN checks: lehdr results

Documentation:

Reference manual: lehdr.html , lehdr.pdf
Vignettes: Getting Started with lehdr (source, R code)

Downloads:

Package source: lehdr_1.2.0.tar.gz
Windows binaries: r-devel: lehdr_1.2.0.zip, r-release: lehdr_1.2.0.zip, r-oldrel: lehdr_1.2.0.zip
macOS binaries: r-release (arm64): lehdr_1.2.0.tgz, r-oldrel (arm64): lehdr_1.2.0.tgz, r-release (x86_64): lehdr_1.2.0.tgz, r-oldrel (x86_64): lehdr_1.2.0.tgz
Old sources: lehdr archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=lehdr to link to this page.