https://github.com/cran/FSelector
Raw File
Tip revision: d2854b77f74f8ee2cb0f4916e5d5a940f035fc6e authored by Lars Kotthoff on 07 January 2021, 17:10 UTC
version 0.32
Tip revision: d2854b7
as.simple.formula.Rd
\name{as.simple.formula}
\alias{as.simple.formula}
\title{ 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{
  \item{attributes}{ character vector of attributes' names }
  \item{class}{ name of destination attribute }
}
\value{
  A simple formula like "class ~ attr1 + attr2"
}
\author{ Piotr Romanski }
\examples{
  data(iris)
  result <- cfs(Species ~ ., iris)
  f <- as.simple.formula(result, "Species")
}
back to top