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

View source: R/farules.R

c.farulesR Documentation

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.

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

## 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

    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 Feb. 15, 2023, 8:15 a.m.