View source: R/permeabilityClass.R
permeabilityClass | R Documentation |
This function determines the soil permeability classes according to the USDA soil textural classes
permeabilityClass(texture)
texture |
is a string decribing soil textural class |
Soil textural class is according to USDA textural triangle such as SiLo, Si, SaLo. The code is represented by first two letters of the class with the first letter in upper case, e.g., Si, Lo, Cl. Class codes with combination of textures have the first two letters included in the combination, e.g., SiLo, SaClLo, etc.
permeability class code. 1-very slow, 2-slow, 3-moderately slow, 4-moderate, 5-moderately rapid, 6-rapid, and 7-very rapid
Christian Thine Omuto
O'Geen, A. T. (2013) Soil Water Dynamics. Nature Education Knowledge 4(5):9
Soil Survey Staff. Soil Taxonomy A Basic System of Soil Classification for Making and Interpreting Soil Surveys. Agricultural Handbook No. 436. U.S. Government Printing Office Washington, DC, 1999.
drainageSuit
, erodFUN
library(sp)
permeabilityClass("SaLo")
texture=suitabinput["texture1"]
texture$permeability=ifelse(texture$texture1=="Lo",
permeabilityClass("Lo"),ifelse(texture$texture1=="SaLo",
permeabilityClass("SaLo"),permeabilityClass("SiLo")))
str(texture$permeability)
texture$Perm=classCode(texture$permeability,"permeability")
spplot(texture["Perm"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.