This function validates Munsell color notation according to the following requirements:
hue must not be absent, and within the set of "standard hues", see
huePosition()value must not be absent, and within
vRangechroma must be within
cRange, and is only allowed to be absent in neutral colors (e.g.N 4/)
Examples
# valid
validateMunsell('5Y 6/8')
#> [1] TRUE
validateMunsell('N 4/')
#> [1] TRUE
validateMunsell('2.5Y 4/0')
#> [1] TRUE
# invalid
validateMunsell('5G 0/4')
#> [1] FALSE
validateMunsell(NA)
#> [1] FALSE
# mixture
validateMunsell(c('5G 4/4', 'N 2/', NA, 'NA', '100R 3/3'))
#> [1] TRUE TRUE FALSE FALSE FALSE