Learn R Programming

lfl (version 2.2.0)

c.farules: 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 farules
c(..., recursive = FALSE)

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.

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.

Author

Michal Burda

See Also

farules(), searchrules()

Examples

Run this code
    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)

Run the code above in your browser using DataLab