R: Replicating bit and bitwhich vectors

rep.booltype {bit} | R Documentation

## Replicating bit and bitwhich vectors

### Description

Creating new bit or bitwhich by recycling such vectors

### Usage

    ## S3 method for class 'bit'
    rep(x, times = 1L, length.out = NA, ...)

    ## S3 method for class 'bitwhich'
    rep(x, times = 1L, length.out = NA, ...)

### Arguments

`x` | bit or bitwhich object
`times` | number of replications
`length.out` | final length of replicated vector (dominates times)
`...` | not used

### Value

An object of class 'bit' or 'bitwhich'

### Author(s)

Jens Oehlschlägel

### See Also

`rep`, `bit` , `bitwhich`

### Examples

     rep(as.bit(c(FALSE,TRUE)), 2)
     rep(as.bit(c(FALSE,TRUE)), length.out=7)
     rep(as.bitwhich(c(FALSE,TRUE)), 2)
     rep(as.bitwhich(c(FALSE,TRUE)), length.out=1)

[Package bit version 4.0.3 Index]