classify_texture: Classify soil texture according to the USDA system

View source: R/texture.R

classify_textureR Documentation

Classify soil texture according to the USDA system

Description

Returns the USDA texture class name for each row based on the sand, silt, and clay fractions. Inputs are expected in per-cent (0–100) and must sum to approximately 100.

Usage

classify_texture(sand, silt, clay, tol = 1)

Arguments

sand

Numeric vector: sand content (%).

silt

Numeric vector: silt content (%).

clay

Numeric vector: clay content (%).

tol

Tolerance for the 100 % sum check (default 1.0).

Value

Character vector of USDA texture class names. Returns NA for rows where values are missing or do not sum to approximately 100.

Examples

classify_texture(sand = c(70, 20, 10, 40),
                silt = c(15, 50, 30, 40),
                clay = c(15, 30, 60, 20))


soilFlux documentation built on Dec. 4, 2026, 5:10 p.m.