classify_classificationtriangle: Classify soil using BS classification triangle

View source: R/classification_triangle.R

classify_classificationtriangleR Documentation

Classify soil using BS classification triangle

Description

Add classification to soil using BS classification chart, based on measured quantities of gravel, .data$ssand, silt and clay

Usage

classify_classificationtriangle(gravel, sand, silt, clay, multiple = FALSE)

Arguments

gravel

mass of gravel

sand

mass of sand

silt

mass of silt

clay

mass of clay

multiple

if 'TRUE', soils that are on boundary of classifications may belong to either side. As a result, for a single entry multiple classifications may be returned. if 'FALSE', only one soil type is returned, based on best interpretation of code: a) primary type only if >40%. Secondary type if >=15 and <=40% for fines and >20% and <=40% for sand and gravel. If equal portions, gravel takes precedence over sand, and clay takes precendence over silt.

Value

tibble object with fractions and classification. Multiple classifications may be returned per input if classification lies on a boundary. The field 'index' identifies the index of the input.

Examples

gravel <- c(10, 30, 50)
sand <- c(40, 20, 15)
silt <- c(30, 50, 10)
clay <- c(20, 0, 25)
classify_classificationtriangle(gravel, sand, silt, clay, multiple = FALSE)
classify_classificationtriangle(gravel, sand, silt, clay, multiple = TRUE)

GJMeijer/soilmech documentation built on May 22, 2022, 10:39 a.m.