Learn R Programming

soilDB (version 2.6.9)

mix_and_clean_colors: Mix and Clean Colors

Description

Deprecated: only used in PedonPC functionality; use estimateColorMixture instead

Usage

mix_and_clean_colors(x, wt = "pct", backTransform = FALSE)

Arguments

x

a data.frame object containing sRGB coordinates ('r', 'g', 'b') in [0,1]

wt

fractional weights, usually area of hz face

backTransform

logical, should the mixed sRGB representation of soil color be transformed to closest Munsell chips? This is performed by

Value

A data.frame containing mixed colors