Skip to content

Miscellaneous soil data management, summary, visualization, and conversion utilities to support soil survey.

Notifications You must be signed in to change notification settings

trilnick/sharpshootR

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R build status CRAN_Status_Badge Total_Downloads

sharpshootR

This package contains 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.

Install the stable version from CRAN:

install.packages('sharpshootR', dep=TRUE)

Install the development version from Github:

remotes::install_github("ncss-tech/sharpshootR", dependencies=FALSE, upgrade=FALSE, build=FALSE)

Website

http://ncss-tech.github.io/AQP/

Quick Reference

Vizualization

Climate

Spatial Data

Utility

Misc.

Related Packages

Examples

library(sharpshootR)
data(loafercreek, package = 'soilDB')

# generalize horizon names using REGEX rules
n <- c('Oi', 'A', 'BA','Bt1','Bt2','Bt3','Cr','R')
p <- c('O', '^A$|Ad|Ap|AB','BA$|Bw', 
       'Bt1$|^B$','^Bt$|^Bt2$','^Bt3|^Bt4|CBt$|BCt$|2Bt|2CB$|^C$','Cr','R')
loafercreek$genhz <- generalize.hz(loafercreek$hzname, n, p)

# remove non-matching generalized horizon names
loafercreek$genhz[loafercreek$genhz == 'not-used'] <- NA
loafercreek$genhz <- factor(loafercreek$genhz)

# aggregate color data, this function is from the `aqp` package
a <- aggregateColor(loafercreek, 'genhz', k = 8)

# plot
par(mar=c(3,4,4,1))
aggregateColorPlot(a, print.n.hz = TRUE)

Dependency Graph

About

Miscellaneous soil data management, summary, visualization, and conversion utilities to support soil survey.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%