powered by
This function returns the position of a feature in the vector, considering the type of the feature.
feature_position(features, feature)
The position of the feature.
The features list.
The name of the feature to find.
features <- list( feature1 = list(type = "numerical"), feature2 = list(type = "categorical"), feature3 = list(type = "numerical") ) position <- feature_position(features, "feature2")
Run the code above in your browser using DataLab