Description Usage Arguments Value Author(s) See Also Examples
View source: R/resultFunctions.R
A simple function to get a vector of feature names for one or more elements of an ExhaustiveSearch object.
1 | getFeatures(ESResult, ranks)
|
ESResult |
a result object from an exhaustive search. |
ranks |
a numeric value or vector defining which elements should be returned. |
If ranks
is a single value, a vector of feature names is returned.
If an intercept is included, the first element of this vector is "1". If
ranks
includes multiple values, a list of such vectors is returned.
Rudolf Jagdhuber
1 2 3 4 5 6 7 8 9 | ## Exhaustive search on the mtcars data
data(mtcars)
ES <- ExhaustiveSearch(mpg ~ ., data = mtcars, family = "gaussian")
## Get the feature combinations of the top 3 models
getFeatures(ES, 1:3)
## Get the feature combination of the 531th best model
getFeatures(ES, 531)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.