as.data.frame.farules: Convert the instance of the 'farules()' S3 class into a data...

View source: R/farules.R

as.data.frame.farulesR Documentation

Convert the instance of the farules() S3 class into a data frame. Empty farules() object is converted into an empty data.frame().

Description

Convert the instance of the farules() S3 class into a data frame. Empty farules() object is converted into an empty data.frame().

Usage

## S3 method for class 'farules'
as.data.frame(x, ...)

Arguments

x

An instance of class farules() to be transformed.

...

Unused.

Value

A data frame of statistics of the rules that are stored in the given farules() object. Row names of the resulting data frame are in the form: A1 & A2 & ... & An => C, where Ai are antecedent predicates and C is a consequent. An empty farules() object is converted into an empty data.frame() object.

Author(s)

Michal Burda

See Also

farules(), searchrules()


beerda/lfl documentation built on Feb. 15, 2023, 8:15 a.m.