Function that simplifies feature if possible
Usage
simplifyFeature(originalFeature, featureNames, featureValues)
Arguments
- originalFeature
feature to simplify
- featureNames
vector of all feature names, repeated according to multiplicity
- featureValues
vector of all values corresponding to features (same order as featureNames)
Value
name of feature to use
Original feature if no _neg suffix
if _neg suffix: original feature and value if none or multiple alternative values, other feature value if exactly one alternative