Package: MazamaSpatialUtils 0.8.7

Jonathan Callahan

MazamaSpatialUtils: Spatial Data Download and Utility Functions

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

Authors:Jonathan Callahan [aut, cre], Rachel Carroll [aut], Eli Grosman [aut], Roger Andre [aut], Tom Bergamaschi [aut], Tina Chen [aut], Ruby Fore [aut], Will Leahy [aut], Helen Miller [aut], Henry Nguyen [aut], Robin Winstanley [aut], Alice Yang [aut]

MazamaSpatialUtils_0.8.7.tar.gz
MazamaSpatialUtils_0.8.7.zip(r-4.5)MazamaSpatialUtils_0.8.7.zip(r-4.4)MazamaSpatialUtils_0.8.7.zip(r-4.3)
MazamaSpatialUtils_0.8.7.tgz(r-4.5-any)MazamaSpatialUtils_0.8.7.tgz(r-4.4-any)MazamaSpatialUtils_0.8.7.tgz(r-4.3-any)
MazamaSpatialUtils_0.8.7.tar.gz(r-4.5-noble)MazamaSpatialUtils_0.8.7.tar.gz(r-4.4-noble)
MazamaSpatialUtils_0.8.7.tgz(r-4.4-emscripten)MazamaSpatialUtils_0.8.7.tgz(r-4.3-emscripten)
MazamaSpatialUtils.pdf |MazamaSpatialUtils.html
MazamaSpatialUtils/json (API)
NEWS

# Install 'MazamaSpatialUtils' in R:
install.packages('MazamaSpatialUtils', repos = c('https://mazamascience.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mazamascience/mazamaspatialutils/issues

Datasets:

On CRAN:

8.01 score 5 stars 2 packages 282 scripts 865 downloads 61 exports 136 dependencies

Last updated 4 months agofrom:678ebf6c28. Checks:1 OK, 7 WARNING. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 30 2025
R-4.5-winWARNINGJan 30 2025
R-4.5-macWARNINGJan 30 2025
R-4.5-linuxWARNINGJan 30 2025
R-4.4-winWARNINGJan 30 2025
R-4.4-macWARNINGJan 30 2025
R-4.3-winWARNINGJan 30 2025
R-4.3-macWARNINGJan 30 2025

Exports:.removeSpatialDataDir%>%codeToCountrycodeToStateCONUSconvertEEZCountriesconvertEPARegionsconvertGACCconvertLayerconvertNaturalEarthAdm1convertOSMTimezonesconvertTMWorldBordersconvertUSCensusCBSAconvertUSCensusCongressconvertUSCensusCountiesconvertUSCensusStatesconvertWBDHUCconvertWeatherZonesconvertWikipediaTimezoneTablecountryCodeToFIPScountryCodeToNamecountryFIPSToCodecountryFIPSToNamecountryNameToCodecountryNameToFIPScountryToCodedissolvegetCountrygetCountryCodegetCountryNamegetHUCgetHUCNamegetPolygonIDgetSpatialDatagetSpatialDataDirgetStategetStateCodegetStateNamegetTimezonegetUSCountygetVariableinstalledSpatialDatainstallSpatialDataiso2ToIso3iso3ToIso2loadSpatialDatasetSpatialDataDirsimplifysimplifyAndSavestateToCodesummarizeByPolygonUS_52US_countyFIPSToNameUS_countyNameToFIPSUS_stateCodesUS_stateCodeToFIPSUS_stateCodeToNameUS_stateFIPSToCodeUS_stateFIPSToNameUS_stateNameToCodeUS_stateNameToFIPS

Dependencies:askpassbase64encbitbit64brewbriobslibcachemcallrclassclassIntclicliprcommonmarkcountrycodecpp11crayoncredentialscurlDBIdescdevtoolsdiffobjdigestdownlitdplyre1071ellipsisevaluatefansifastmapfontawesomeformatRfsfutile.loggerfutile.optionsgenericsgeohashToolsgeojsonsfgeometriesgertghgitcredsgluehighrhmshtmltoolshtmlwidgetshttpuvhttrhttr2inijquerylibjsonifyjsonliteKernSmoothknitrlambda.rlaterlatticelifecyclelubridatemagrittrMASSMazamaCoreUtilsmemoisemimeminiUIopensslpillarpkgbuildpkgconfigpkgdownpkgloadpraiseprettyunitsprocessxprofvisprogresspromisesproxypspurrrR6raggrapidjsonrrappdirsrcmdcheckRcppreadrremotesrlangrmapshaperrmarkdownroxygen2rprojrootrstudioapirversionsrvests2sassselectrsessioninfosfsfheadersshinysourcetoolsspstringistringrsyssystemfontstestthattextshapingtibbletidyselecttimechangetinytextzdbunitsurlcheckerusethisutf8V8vctrsvroomwaldowhiskerwithrwkxfunxml2xopenxtableyamlzip

Developer Style Guide

Rendered fromDeveloper_Style_Guide.Rmdusingknitr::rmarkdownon Jan 30 2025.

Last update: 2023-03-22
Started: 2020-05-18

Introduction to MazamaSpatialUtils

Rendered fromMazamaSpatialUtils.Rmdusingknitr::rmarkdownon Jan 30 2025.

Last update: 2023-03-22
Started: 2019-01-11

Readme and manuals

Help Manual

Help pageTopics
Convert country codes to country namescodeToCountry
Convert state codes to state nnamescodeToState
CONUS state codesCONUS
Convert Exclusive Economic Zones countries shapefileconvertEEZCountries
Convert EPA Region shapefilesconvertEPARegions
Convert Geographic Area Coordination Center shapefileconvertGACC
Convert shapefile layer to simple features dataframeconvertLayer
Convert Level 1 (state) borders shapefileconvertNaturalEarthAdm1
Convert OSM timezone shapefileconvertOSMTimezones
Convert world borders shapefileconvertTMWorldBorders
Convert US Core Based Statistical Areas shapefileconvertUSCensusCBSA
Convert US congressional districts shapefileconvertUSCensusCongress
Convert US county borders shapefileconvertUSCensusCounties
Convert US Census state shapefileconvertUSCensusStates
Convert USGS hydrologic unit geodatabaseconvertWBDHUC
Convert NWS Public Forecast Zones Shapefile.convertWeatherZones
Convert Wikipedia timezone table to dataframeconvertWikipediaTimezoneTable
Conversion functions for country names, codes and FIPS codes.countryCodeToFIPS countryCodeToName countryConversion countryFIPSToCode countryFIPSToName countryNameToCode countryNameToFIPS
Convert country names to country codescountryToCode
Aggregate shapes in a simple features data framedissolve
Return country names at specified locationsgetCountry
Return country ISO codes at specified locationsgetCountryCode
Return country names at specified locationsgetCountryName
Return HUCs at specified locationsgetHUC
Return HUC names at specified locationsgetHUCName
Get polygonID from SFDF of interestgetPolygonID
Return spatial data associated with a set of locationsgetSpatialData
Get package data directorygetSpatialDataDir
Return state names at specified locationsgetState
Return state ISO codes at specified locationsgetStateCode
Return state names at specified locationsgetStateName
Return Olson timezones at specified locationsgetTimezone
Return US county name at specified locationsgetUSCounty
Return SFDF variable at specified locationsgetVariable
List locally installed spatial datasetsinstalledSpatialData
Install spatial datasetsinstallSpatialData
Convert from ISO2 to ISO3 country codesiso2ToIso3
Convert from ISO3 to ISO2 country codesiso3ToIso2
Load spatial datasetsloadSpatialData
Set package data directorysetSpatialDataDir
Simplified spatial dataset of country boundaries.SimpleCountries
Simplified spatial dataset of EEZ/country combined boundaries.SimpleCountriesEEZ
Simplified spatial dataset of world timezones.SimpleTimezones
Simplify simple features data framesimplify
Save simplified versions of a spatial features dataframesimplifyAndSave
Directory for spatial dataSpatialDataDir
Convert state names to state codesstateToCode
Summarize values by polygonsummarizeByPolygon
US state codesUS_52
Dataframe of US county codesUS_countyCodes
Conversion functions for US county names and FIPS codes.US_countyConversion US_countyFIPSToName US_countyNameToFIPS
Dataframe of US state codesUS_stateCodes
Conversion functions for US state names, codes and FIPS codes.US_stateCodeToFIPS US_stateCodeToName US_stateConversion US_stateFIPSToCode US_stateFIPSToName US_stateNameToCode US_stateNameToFIPS