rep2abI function

Replicate Vectors into 'abIndex' Result

Replicate Vectors into 'abIndex' Result

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

rep2abI(x, times)

Arguments

  • x: numeric vector
  • times: integer (valued) scalar: the number of repetitions

Returns

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)))
  • Maintainer: Martin Maechler
  • License: GPL (>= 2) | file LICENCE
  • Last published: 2025-03-11