Learn R Programming

bit (version 4.5.0)

rep.booltype: Replicating bit and bitwhich vectors

Description

Creating new bit or bitwhich by recycling such vectors

Usage

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

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

Value

An object of class 'bit' or 'bitwhich'

Arguments

x

bit or bitwhich object

times

number of replications

length.out

final length of replicated vector (dominates times)

...

not used

Author

Jens Oehlschlägel

See Also

rep, bit , bitwhich

Examples

Run this code

 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)

Run the code above in your browser using DataLab