{"id":13949180,"url":"https://github.com/ncss-tech/sharpshootR","last_synced_at":"2025-07-20T11:31:06.847Z","repository":{"id":39617953,"uuid":"54595545","full_name":"ncss-tech/sharpshootR","owner":"ncss-tech","description":"Miscellaneous soil data management, summary, visualization, and conversion utilities to support soil survey.","archived":false,"fork":false,"pushed_at":"2025-07-16T18:22:39.000Z","size":50170,"stargazers_count":18,"open_issues_count":12,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-19T17:00:48.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://ncss-tech.github.io/sharpshootR/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncss-tech.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-03-23T21:52:31.000Z","updated_at":"2025-07-16T18:18:24.000Z","dependencies_parsed_at":"2023-09-21T19:46:19.113Z","dependency_job_id":"67af4468-3e32-4d77-b82a-517bbc2db97b","html_url":"https://github.com/ncss-tech/sharpshootR","commit_stats":{"total_commits":1247,"total_committers":9,"mean_commits":"138.55555555555554","dds":0.2181234963913392,"last_synced_commit":"26aeef1a489bc389be4cdfc209a5f339baea518c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ncss-tech/sharpshootR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncss-tech%2FsharpshootR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncss-tech%2FsharpshootR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncss-tech%2FsharpshootR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncss-tech%2FsharpshootR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncss-tech","download_url":"https://codeload.github.com/ncss-tech/sharpshootR/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncss-tech%2FsharpshootR/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266116880,"owners_count":23878965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-08T05:01:40.034Z","updated_at":"2025-07-20T11:31:06.828Z","avatar_url":"https://github.com/ncss-tech.png","language":"R","funding_links":[],"categories":["Natural Resources","Access and Monitoring of Resources"],"sub_categories":["Soil and Land","Soil"],"readme":"---\noutput: github_document\n---\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.align = 'center',\n  fig.path = \"man/figures/README-\",\n  dev = \"svglite\",\n  message = FALSE,\n  warning = FALSE,\n  tidy = FALSE\n)\n```\n\n[![R build status](https://github.com/ncss-tech/sharpshootR/workflows/R-CMD-check/badge.svg)](https://github.com/ncss-tech/sharpshootR/actions)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/sharpshootR)](http://cran.r-project.org/web/packages/sharpshootR)\n[![Total_Downloads](http://cranlogs.r-pkg.org/badges/grand-total/sharpshootR)](https://cran.r-project.org/package=sharpshootR)\n[![sharpshootR Manual](https://img.shields.io/badge/docs-HTML-informational)](http://ncss-tech.github.io/sharpshootR/)\n\n# sharpshootR\n\nThis package contains a mish-mash of functionality and sample data related to the daily business of soil survey operations with the USDA-NRCS. Many of the functions are highly specialized and inherit default arguments from the names used by the various NCSS (National Cooperative Soil Survey) databases.\n\n## Installation\n\nGet the stable version from CRAN:\n\n```{r eval = FALSE}\ninstall.packages('sharpshootR', dep = TRUE)\n```\n\nGet the development version from Github, after installing the CRAN version + dependencies:\n\n```{r eval = FALSE}\nremotes::install_github(\"ncss-tech/sharpshootR\", dependencies=FALSE, upgrade=FALSE, build=FALSE)\n```\n\n### Install Suggested Packages\n```{r eval = FALSE}\np \u003c- c(\"MASS\", \"spdep\", \"circlize\", \"rvest\", \"xml2\", \"terra\", \n       \"raster\", \"exactextractr\", \"httr\", \"jsonlite\", \"igraph\", \n       \"dendextend\", \"testthat\", \"hydromad\", \"latticeExtra\", \n       \"farver\", \"venn\", \"gower\", \"daymetr\", \"elevatr\", \n       \"Evapotranspiration\", \"zoo\", \"SoilTaxonomy\", \"sf\", \"Hmisc\"\n)\n\ninstall.packages(p)\n```\n\n## Website\n[http://ncss-tech.github.io/AQP/](http://ncss-tech.github.io/AQP/)\n\n## Examples\n\n```{r fig.width=9, fig.height=5}\nlibrary(sharpshootR)\nlibrary(aqp)\ndata(loafercreek, package = 'soilDB')\n\n# generalize horizon names using REGEX rules\nn \u003c- c('Oi', 'A', 'BA','Bt1','Bt2','Bt3','Cr','R')\np \u003c- c('O', '^A$|Ad|Ap|AB','BA$|Bw', \n       'Bt1$|^B$','^Bt$|^Bt2$','^Bt3|^Bt4|CBt$|BCt$|2Bt|2CB$|^C$','Cr','R')\nloafercreek$genhz \u003c- generalize.hz(loafercreek$hzname, n, p)\n\n# remove non-matching generalized horizon names\nloafercreek$genhz[loafercreek$genhz == 'not-used'] \u003c- NA\nloafercreek$genhz \u003c- factor(loafercreek$genhz)\n\n# aggregate color data, this function is from the `aqp` package\na \u003c- aggregateColor(loafercreek, 'genhz', k = 8)\n\n# plot\npar(mar=c(4.5, 1.25, 1, 0.25))\naggregateColorPlot(a, print.n.hz = TRUE)\n```\n\n\n\n## Citation\n```{r}\ncitation(\"sharpshootR\")\n```\n\n## Quick Reference\n\n### Visualization\n   * [`aggregateColorPlot`](http://ncss-tech.github.io/sharpshootR/reference/aggregateColorPlot.html)\n   * [`aspect.plot`](http://ncss-tech.github.io/sharpshootR/reference/aspect.plot.html)\n   * [`diagnosticPropertyPlot`](http://ncss-tech.github.io/sharpshootR/reference/diagnosticPropertyPlot.html)\n   * [`plotAvailWater`](http://ncss-tech.github.io/sharpshootR/reference/plotAvailWater.html)\n   * [`plotProfileDendrogram`](http://ncss-tech.github.io/sharpshootR/reference/plotProfileDendrogram.html)\n   * [`plotSoilRelationGraph`](http://ncss-tech.github.io/sharpshootR/reference/plotSoilRelationGraph.html)\n   * [`plotSoilRelationChordGraph`](http://ncss-tech.github.io/sharpshootR/reference/plotSoilRelationChordGraph.html)\n   * [`plotTransect`](http://ncss-tech.github.io/sharpshootR/reference/plotTransect.html)\n   * [`SoilTaxonomyDendrogram`](http://ncss-tech.github.io/sharpshootR/reference/SoilTaxonomyDendrogram.html)\n   * [`vizGeomorphicComponent`](http://ncss-tech.github.io/sharpshootR/reference/vizHillslopePosition.html)\n   * [`vizHillslopePosition`](http://ncss-tech.github.io/sharpshootR/reference/vizHillslopePosition.html)\n   * [`vizFlatsPosition`](http://ncss-tech.github.io/sharpshootR/reference/vizFlatsPosition.html)\n   * [`vizTerracePosition`](http://ncss-tech.github.io/sharpshootR/reference/vizTerracePosition.html)\n   * [`vizMountainPosition`](http://ncss-tech.github.io/sharpshootR/reference/vizMountainPosition.html)\n   * [`vizAnnualClimate`](http://ncss-tech.github.io/sharpshootR/reference/vizAnnualClimate.html)\n   * [`plotWB`](http://ncss-tech.github.io/sharpshootR/reference/plotWB.html)\n   * [`plotWB_lines`](http://ncss-tech.github.io/sharpshootR/reference/plotWB_lines.html)\n\n   \n### Climate\n   * [`monthlyWB`](http://ncss-tech.github.io/sharpshootR/reference/monthlyWB.html)\n   * [`simpleWB`](http://ncss-tech.github.io/sharpshootR/reference/simpleWB.html)\n   * [`dailyWB`](http://ncss-tech.github.io/sharpshootR/reference/dailyWB.html)\n   * [`dailyWB_SSURGO`](http://ncss-tech.github.io/sharpshootR/reference/dailyWB_SSURGO.html)\n   * [`CDECquery`](http://ncss-tech.github.io/sharpshootR/reference/CDECquery.html)\n   * [`CDECsnowQuery`](http://ncss-tech.github.io/sharpshootR/reference/CDECsnowQuery.html)\n   * [`FFD`](http://ncss-tech.github.io/sharpshootR/reference/FFD.html)\n   * [`FFDplot`](http://ncss-tech.github.io/sharpshootR/reference/FFD.html)\n   * [`PCP_plot`](http://ncss-tech.github.io/sharpshootR/reference/PCP_plot.html)\n   * [`waterDayYear`](http://ncss-tech.github.io/sharpshootR/reference/waterDayYear.html)\n\n\n### Spatial Data\n   * [`constantDensitySampling`](http://ncss-tech.github.io/sharpshootR/reference/constantDensitySampling.html)\n   * [`generateLineHash`](http://ncss-tech.github.io/sharpshootR/reference/generateLineHash.html)\n   * [`polygonAdjacency`](http://ncss-tech.github.io/sharpshootR/reference/polygonAdjacency.html)\n   * [`PLSS2LL`](http://ncss-tech.github.io/sharpshootR/reference/PLSS2LL.html)\n   * [`LL2PLSS`](http://ncss-tech.github.io/sharpshootR/reference/LL2PLSS.html)\n   * [`sample.by.poly`](http://ncss-tech.github.io/sharpshootR/reference/sample.by.poly.html)\n   * [`samplingStability`](http://ncss-tech.github.io/sharpshootR/reference/samplingStability.html)\n   * [`sampleRasterStackByMU`](http://ncss-tech.github.io/sharpshootR/reference/sampleRasterStackByMU.html)\n\n\n### Utility\n   * [`component.adj.matrix`](http://ncss-tech.github.io/sharpshootR/reference/component.adj.matrix.html)\n   * [`dist.along.grad`](http://ncss-tech.github.io/sharpshootR/reference/dist.along.grad.html)\n\n\n### Misc.\n   * [`percentileDemo`](http://ncss-tech.github.io/sharpshootR/reference/percentileDemo.html)\n   * [`multinominal2logical`](http://ncss-tech.github.io/sharpshootR/reference/multinominal2logical.html)\n   * [`site_photos_kml`](http://ncss-tech.github.io/sharpshootR/reference/site_photos_kml.html)\n\n\n## Related Packages\n * [`aqp`](https://github.com/ncss-tech/aqp)\n * [`soilDB`](https://github.com/ncss-tech/soilDB)\n \n\n\n## Related Presentations / Posters\n  * [Numerical Classification of Soil Profiles (2023 NCSS Meetings)](https://ncss-tech.github.io/AQP/presentations/2023-NCSS-NCSP-poster.pdf)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncss-tech%2FsharpshootR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncss-tech%2FsharpshootR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncss-tech%2FsharpshootR/lists"}