Function to check value in leaf from numeric until character

check_value(value, threshold)

Arguments

value

is the value in leaf node

threshold

in leaf node

Value

TRUE if <= in numeric or %in% in factor