Add texture classification column to a data frame
Usage
add_texture(
df,
sand_col = "sand_total",
silt_col = "silt",
clay_col = "clay",
out_col = "Texture"
)Examples
df <- data.frame(sand_total = c(70, 20), silt = c(15, 50), clay = c(15, 30))
add_texture(df)
#> sand_total silt clay Texture
#> 1 70 15 15 Sandy Loam
#> 2 20 50 30 Silty Clay Loam
