c.farules: Take a sequence of instances of S3 class 'farules()' and...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/farules.R

Description

Take a sequence of instances of S3 class farules() and combine them into a single object. An error is thrown if some argument does not inherit from the farules() class.

Usage

1
2
## S3 method for class 'farules'
c(..., recursive = FALSE)

Arguments

...

A sequence of objects of class farules() to be concatenated.

recursive

This argument has currently no function and is added here only for compatibility with generic c function.

Value

An object of class farules() that is created by merging the arguments together, i.e. by concatenating the rules and row-binding the statistics of given objects.

Author(s)

Michal Burda

See Also

farules(), searchrules()

Examples

1
2
3
4
5
6
7
8
    ori1 <- farules(rules=list(letters[1:3],
                               letters[2:5]),
                    statistics=matrix(runif(16), nrow=2))
    ori2 <- farules(rules=list(letters[4],
                               letters[3:8]),
                    statistics=matrix(runif(16), nrow=2))
    res <- c(ori1, ori2)
    print(res)

beerda/lfl documentation built on Oct. 17, 2020, 8:57 p.m.