c | R Documentation |
Concatenate words or cycles together
## S3 method for class 'word'
c(...)
## S3 method for class 'cycle'
c(...)
## S3 method for class 'permutation'
rep(x, ...)
... |
In the methods for |
x |
In the method for |
The methods for c()
do not attempt to detect which type (word or
cycle) you want as conversion is expensive.
Function rep.permutation()
behaves like base::rep()
and
takes the same arguments, eg times
and each
.
Robin K. S. Hankin
size
x <- as.cycle(1:5)
y <- cycle(list(list(1:4,8:9),list(1:2)))
# concatenate cycles:
c(x,y)
# concatenate words:
c(rperm(5,3),rperm(6,9)) # size adjusted to maximum size of args
# repeat words:
rep(x, times=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.