repEach: Repeat each element x_i in X, n_i times.

Description Usage Arguments Value Examples

View source: R/fcn_misc.R

Description

Repeat each element x_i in X, n_i times.

Usage

1
repEach(x, n)

Arguments

x

Values to be repeated

n

Number of repeat for each x_i (same length as x)

Value

Vector with values from x, n times

Examples

1
  repEach(1:3, 1:3)  ## 1, 2, 2, 3, 3, 3

PTXQC documentation built on Feb. 9, 2018, 6:08 a.m.