rep2: A more specific case of 'rep'.

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

This function is used to create e vector of repeating elements where the number of times each number is repeated can be specified independently.

Usage

1
rep2(x, r)

Arguments

x

Vector with elements that should be repeated.

r

Vector of the same size as x specifiying how many times each element should be repeated.

Value

Vector with repeated elements.

See Also

rep

Examples

1
print(rep2(c(1,2,3), c(1,2,3)))

tunelipt/wutils documentation built on Nov. 5, 2019, 11:01 a.m.