rep(Object element, Integer times)

The replication function. Takes a value and an integer representing the number of times to replicate the value. Returns a vector of the value repeated the specified number of times.

Parameters

  • Object element - the element to replicate.
  • Integer times - the standard deviation of the distribution.

Return type

Object