x.vars: Extract the input attribute names from a formula for a...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/r-utility-formula-vars.R

Description

This function extracts the input attribute names from an R formula for a given dataset. It is used in examples presented in the book Cichosz, P. (2015): Data Mining Algorithms: Explained Using R. See Appendix B or http://www.wiley.com/go/data_mining_algorithms for more details.

Usage

1

Arguments

formula

a formula for R modeling functions

data

a dataframe

Details

The names of all columns of data that are used as input attributes according to formula are extracted.

Value

A character vector containing the input attribute names from formula.

Author(s)

Pawel Cichosz <p.cichosz@elka.pw.edu.pl>

See Also

y.var, make.formula

Examples

1
2
3
4
data(weather, package="dmr.data")

x.vars(play~outlook+temperature, weather)
x.vars(play~., weather)

42n4/dmr.util documentation built on May 20, 2019, 2:02 p.m.