Skip to contents

Concatenate free objects together

Usage

# S3 method for class 'free'
c(...)
# S3 method for class 'free'
rep(x, ...)

Arguments

...

In the method for c(), objects to be concatenated. Should all be of the same type

x

In the method for rep(), a free object

Author

Robin K. S. Hankin

Examples

(x <- abc(1:3))
#> [1] a     a.b   a.b.c
(y <- alpha(22:25))
#> [1] v w x y

c(x,y,x,x)
#>  [1] a     a.b   a.b.c v     w     x     y     a     a.b   a.b.c a     a.b  
#> [13] a.b.c


## NB: compare
rep(x,2)  
#> [1] a     a.b   a.b.c a     a.b   a.b.c
x*2  
#> [1] a^2         a.b.a.b     a.b.c.a.b.c