feature_position {niarules} | R Documentation |
This function returns the position of a feature in the vector, considering the type of the feature.
feature_position(features, feature)
features |
The features list. |
feature |
The name of the feature to find. |
The position of the feature.
features <- list(
feature1 = list(type = "numerical"),
feature2 = list(type = "categorical"),
feature3 = list(type = "numerical")
)
position <- feature_position(features, "feature2")