Learn R Programming

simts (version 0.2.2)

num_rep: Replicate a Vector of Elements \(n\) times

Description

This function takes a vector and replicates all of the data \(n\) times

Usage

num_rep(x, n)

Value

A vec with repeated elements of the initial supplied vector.

Arguments

x

A vec containing the data

n

An unsigned int indicating the number of times the vector should be repeated.