Skip to content

MazamaSpatialUtils

0.8.7Package record

Spatial Data Download and Utility Functions

2packages depend
8.6Kdownloads / year
18.1%test coverage
13/13flavors OK

Overview

About

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.)

Changes in 0.8.7

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

CRAN checks
13OK
Slowest check: 2.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.8.7
READMEYes · 615 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 0.8.7Citation fileNo
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

8.6K
CRAN downloads in the past year
Rank #5,179 · ~24/day · ~716/mo
Daily download trend is not available in this view yet.
58930 days
1.6K90 days
8.6K1 year
Compare downloads with other packages →
Also on112 r2u1 autocran

Repository

5Stars
2Forks
10Open issues
0Open PRs
19Releases
512Commits
19Commit identities
License file reads as GPL-2.0 · 512 commits · Last activity 2026-07-09 · Discussions: 1 post
Responsiveness
How these are sampled
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

2022-10-14 · 42026-07-07 · 5
PracticesBeta

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.

Continuous integration (1)
Travis CI (config file)
Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-07-09

Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

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.

Depends (2)
R >= 4.0.0sf
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Depends 1 · Imports 1
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (12)
Author, Maintainer since 0.1.2 (2015)
Author · added in 0.7.3
Author · added in 0.6.0
Author · added in 0.7.3
Author · added in 0.7.3
Author · added in 0.4.3
Author · added in 0.7.3
Author · added in 0.5.2
Author · added in 0.2.1
Author · added in 0.3.1
Author · added in 0.4.8
Releases (22)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.8.7Latest
    record
    2024-11-03 · current release · diff ↗ ·
    added 6 exports
    countryCodeToFIPS, countryCodeToName, countryFIPSToCode, countryFIPSToName, countryNameToCode, countryNameToFIPS
  • R
    R 4.4.0 released · 2024-04-24
  • 0.8.6
    record
    2023-09-06 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.8.5
    record
    2023-04-17 · diff ↗ ·
    added 3 exports
    convertWBDHUC, getHUC, getHUCName
  • 0.8.1
    record
    2022-11-09 · diff ↗ ·
    removed 16 exports
    convertCARBAirBasins, convertGADM, convertNWSFireZones, convertStateLegislativeDistricts, convertTMWorldBordersSimple, convertTerrestrialEcoregions, convertUSCensusUrbanAreas, convertUSIndianLands, convertWBDHUC, convertWorldTimezones, getHUC, getHUCName, installSpatialData_0.6, organizePolygons, removeSpatialDataDir, subsetHUC
    added 2 exports
    .removeSpatialDataDir, simplifyAndSave
  • R
    R 4.2.0 released · 2022-04-22
  • 0.7.6
    record
    2021-09-15 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.7.3
    record
    2020-12-01 · diff ↗ ·
    removed 5 exports
    convertHMSSmoke, convertIndianLands, convertPHDs, convertWorldEEZ, runExample
    added 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
  • R
    R 4.0.0 released · 2020-04-24
  • 0.6.4
    record
    2019-09-28 · diff ↗ ·
    added 1 export
    %>%
  • R
    R 3.6.0 released · 2019-04-26
  • 0.6.1
    record
    2019-01-30 · diff ↗
Show 19 earlier eventsHide 19 earlier events
  • 0.6.0
    record
    2019-01-27 · diff ↗ ·
    removed 1 export
    convertISOCodeTable
    added 12 exports
    CONUS, US_52, convertCARBAirBasins, convertGACC, convertNWSFireZones, convertPHDs, convertStateLegislativeDistricts, convertWeatherZones, dissolve, removeSpatialDataDir, runExample, simplify
  • 0.5.4
    record
    2018-09-18 · diff ↗ ·
    added 1 export
    convertUSCensusCBSA
  • R
    R 3.5.0 released · 2018-04-23
  • 0.5.2
    record
    2017-12-07 · diff ↗
  • 0.5.1
    record
    2017-08-04 · diff ↗ ·
    removed 1 export
    codeToCode
    added 11 exports
    convertEEZCountries, convertISOCodeTable, convertIndianLands, convertOSMTimezones, convertTerrestrialEcoregions, convertUSCensusCongress, convertUSCensusStates, getPolygonID, iso2ToIso3, iso3ToIso2, summarizeByPolygon
  • R
    R 3.4.0 released · 2017-04-21
  • 0.4.9
    record
    2017-03-17 · diff ↗ ·
    removed 1 export
    initializeSpatialData
  • 0.4.8
    record
    2016-11-18 · diff ↗ ·
    added 1 export
    convertHMSSmoke
  • R
    R 3.3.0 released · 2016-05-03
  • 0.4.3
    record
    2016-02-17 · diff ↗ ·
    removed 1 export
    convertUSGSHUC8
    added 3 exports
    getHUC, getHUCName, subsetHUC
  • 0.3.2
    record
    2015-07-24 · diff ↗
  • 0.3.1
    record
    2015-07-11 · diff ↗ ·
    added 2 exports
    convertWBDHUC, convertWorldEEZ
  • 0.2.4
    record
    2015-05-21 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 0.2.3
    record
    2015-03-26 · diff ↗
  • 0.2.2
    record
    2015-03-02 · diff ↗
  • 0.2.1
    record
    2015-02-23 · diff ↗ ·
    added 5 exports
    codeToCode, convertGADM, convertUSGSHUC8, getVariable, organizePolygons
  • 0.1.2
    record
    2015-02-11
  • R
    R 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")
Callahan, J., Andre, R., Bergamaschi, T., Carroll, R., Chen, T., Fore, R., Grosman, E., Leahy, W., Miller, H., Nguyen, H., Winstanley, R., & Yang, A. (2024). MazamaSpatialUtils: Spatial Data Download and Utility Functions (Version 0.8.7) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MazamaSpatialUtils version 0.8.7 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy