Dams in the United States from the National Inventory of Dams (NID)

The single largest source of dams in the United States is the National Inventory of Dams (NID) < http://nid.usace.army.mil> from the US Army Corps of Engineers. Entire data from the NID cannot be obtained all at once and NID's website limits extraction of more than a couple of thousand records at a time. Moreover, selected data from the NID's user interface cannot not be saved to a file. In order to make the analysis of this data easier, all the data from NID was extracted manually. Subsequently, the raw data was checked for potential errors and cleaned. This package provides sample cleaned data from the NID and provides functionality to access the entire cleaned NID data.

rstudio mirror downloads cran version

dams is an R data package interface to the United States National Inventory of Dams (NID) http://nid.usace.army.mil



Development version from Github







dams 0.2


  • External data was compressed, columns removed to fit under CRAN size limits, moved inside package


  • Converted vignette to Rmd

  • Remade docs with roxygen2

  • Package no longer contains data sample subset and extract_nid no longer references it.

  • Added a NEWS.md file to track changes to the package.

dams 0.1

  • Data from NID was downloaded in March 2014.

  • NID's website claims to have more than 80,000 dams; however, only 74,000 dams could be obtained from the website's UI.

  • Package comes with sample data; entire dataset available on bitbucket.org/rationshop

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.3.0 by Joseph Stachelek, a year ago


Report a bug at http://www.github.com/jsta/dams/issues

Browse source code at https://github.com/cran/dams

Authors: Gopi Goteti [aut] , Joseph Stachelek [aut, cre]

Documentation:   PDF Manual  

GPL (>= 2) license

Imports crul, fauxpas, janitor, readxl

Suggests ggplot2, maps, mapproj, testthat, knitr, rmarkdown

See at CRAN