as.simple.formula {FSelector} | R Documentation |
Converting to formulas
Description
Converts character vector of atrributes' names and destination attribute's name to a simple formula.
Usage
as.simple.formula(attributes, class)
Arguments
attributes |
character vector of attributes' names |
class |
name of destination attribute |
Value
A simple formula like "class ~ attr1 + attr2"
Author(s)
Piotr Romanski
Examples
data(iris)
result <- cfs(Species ~ ., iris)
f <- as.simple.formula(result, "Species")
[Package FSelector version 0.34 Index]