rep.booltype: Replicating bit and bitwhich vectors

Description Usage Arguments Value Author(s) See Also Examples

Description

Creating new bit or bitwhich by recycling such vectors

Usage

1
2
3
4
5
## 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

1
2
3
4
 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 Aug. 4, 2020, 9:06 a.m.