as.simple.formula: Converting to formulas

View source: R/misc.R

as.simple.formulaR 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")

FSelector documentation built on Aug. 23, 2023, 1:08 a.m.