R/soilStrength2.R

Defines functions soilStrength2

Documented in soilStrength2

soilStrength2 <- function(bulk.density,  matric.suction, clay.content) { 

 pF <- log10(matric.suction)
 BD <- bulk.density
 clay <- clay.content

 out <- -26.51 + (25.57*BD) - (20.40*clay) + (10.26*clay*pF)

 for (j in 1: length(out)) { 
 if (out[j] < 0) {out[j] <- 0}
 }

 return(out^2)

}

Try the soilphysics package in your browser

Any scripts or data that you put into this service are public.

soilphysics documentation built on June 7, 2022, 5:06 p.m.