rep2abI: Replicate Vectors into 'abIndex' Result

View source: R/abstract.R

rep2abIR Documentation

Replicate Vectors into 'abIndex' Result

Description

rep2abI(x, times) conceptually computes rep.int(x, times) but with an abIndex class result.

Usage

rep2abI(x, times)

Arguments

x

numeric vector

times

integer (valued) scalar: the number of repetitions

Value

a vector of class abIndex

See Also

rep.int(), the base function; abIseq, abIndex.

Examples

(ab <- rep2abI(2:7, 4))
stopifnot(identical(as(ab, "numeric"),
	   rep(2:7, 4)))

Matrix documentation built on Aug. 13, 2024, 3:01 p.m.