y.var: Extract the target attribute name from a formula

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

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

Description

This function extracts the target attribute name 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

Details

The name of the column of data that is used as the target attribute according to formula is extracted.

Value

A character vector containing the target attribute name from formula.

Author(s)

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

See Also

x.vars, make.formula

Examples

1
y.var(play~.)

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