Learn R Programming

gramEvol (version 2.1-4)

c: Grammar Rule Concatenation

Description

Concatenates two or more grammar rule objects.

Usage

# S3 method for GERule
c(..., recursive=FALSE)

Arguments

...

Grammar rule objects to be concatenated.

recursive

Not used.

Value

A new grammar rule object.

See Also

CreateGrammar

Examples

Run this code
# NOT RUN {
rule1 <- grule(Func1, Func2)
rule2 <- grule(`*`, `/`)

rule.all <- c(rule1, rule2)

print(rule.all)
# }

Run the code above in your browser using DataLab