rep.booltype: Replicating bit and bitwhich vectors

rep.booltypeR 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)

bit documentation built on Sept. 20, 2024, 5:08 p.m.