Spatial Data Download and Utility Functions
Overview
A suite of conversion functions to create internally standardized spatial polygons data frames. Utility functions use these data sets to return values such as country, state, time zone, watershed, etc. associated with a set of longitude/latitude pairs. (They also make cool maps.)
Added a new set of country code conversion functions whose names match those
for state and county conversions:
countryCodeToName()countryCodeToFIPS()countryFIPSToName()countryCodeToCode()countryNameToCode()countryNameToFIPS()
These are now preferred over the older codeToCountry() and countryToCode()
functions which, while deprecated, are still supported for backwards compatibility.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 56 (3 internal)
- Examples that run
- 50%7 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 6 never run
- Exported functions with examples
- 28%
- Documented parameters
- 100%
- Return-value docs
- 92%
- Help pages citing references
- 30%
Also includes 3 demo scripts (run with demo())
Downloads
Repository
- PRs merged (all time)
- 50%
- Median days to close, 50 most recently updated closed issues
- 20
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/mazamascience/mazamaspatialutils on 2026-10-25.
Dependencies
Installing MazamaSpatialUtils adds 131 packages (69 with compiled code, 86 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, bslib 5.6 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.8.7Latest2024-11-03 · current release · diff ↗ ·
added 6 exports
countryCodeToFIPS, countryCodeToName, countryFIPSToCode, countryFIPSToName, countryNameToCode, countryNameToFIPS - RR 4.4.0 released · 2024-04-24
- 0.8.62023-09-06 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.8.5
- 0.8.12022-11-09 · diff ↗ ·
removed 16 exports
convertCARBAirBasins, convertGADM, convertNWSFireZones, convertStateLegislativeDistricts, convertTMWorldBordersSimple, convertTerrestrialEcoregions, convertUSCensusUrbanAreas, convertUSIndianLands, convertWBDHUC, convertWorldTimezones, getHUC, getHUCName, installSpatialData_0.6, organizePolygons, removeSpatialDataDir, subsetHUCadded 2 exports
.removeSpatialDataDir, simplifyAndSave - RR 4.2.0 released · 2022-04-22
- 0.7.62021-09-15 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.7.32020-12-01 · diff ↗ ·
removed 5 exports
convertHMSSmoke, convertIndianLands, convertPHDs, convertWorldEEZ, runExampleadded 14 exports
US_countyFIPSToName, US_countyNameToFIPS, US_stateCodeToFIPS, US_stateCodeToName, US_stateCodes, US_stateFIPSToCode, US_stateFIPSToName, US_stateNameToCode, US_stateNameToFIPS, convertEPARegions, convertUSCensusUrbanAreas, convertUSIndianLands, installSpatialData_0.6, installedSpatialData - RR 4.0.0 released · 2020-04-24
- 0.6.4
- RR 3.6.0 released · 2019-04-26
- 0.6.12019-01-30 · diff ↗
Show 19 earlier eventsHide 19 earlier events
- 0.6.02019-01-27 · diff ↗ ·
removed 1 export
convertISOCodeTableadded 12 exports
CONUS, US_52, convertCARBAirBasins, convertGACC, convertNWSFireZones, convertPHDs, convertStateLegislativeDistricts, convertWeatherZones, dissolve, removeSpatialDataDir, runExample, simplify - 0.5.4
- RR 3.5.0 released · 2018-04-23
- 0.5.22017-12-07 · diff ↗
- 0.5.12017-08-04 · diff ↗ ·
removed 1 export
codeToCodeadded 11 exports
convertEEZCountries, convertISOCodeTable, convertIndianLands, convertOSMTimezones, convertTerrestrialEcoregions, convertUSCensusCongress, convertUSCensusStates, getPolygonID, iso2ToIso3, iso3ToIso2, summarizeByPolygon - RR 3.4.0 released · 2017-04-21
- 0.4.9
- 0.4.8
- RR 3.3.0 released · 2016-05-03
- 0.4.3
- 0.3.22015-07-24 · diff ↗
- 0.3.1
- 0.2.42015-05-21 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 0.2.32015-03-26 · diff ↗
- 0.2.22015-03-02 · diff ↗
- 0.2.12015-02-23 · diff ↗ ·
added 5 exports
codeToCode, convertGADM, convertUSGSHUC8, getVariable, organizePolygons - 0.1.22015-02-11
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2015-02-11
- Total releases
- 22 / 11 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 1.7 MB / 4 files
- Download size
- 2.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MazamaSpatialUtils")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.