rep - Replicate a value
'rep' creates a vector of 'n' copies of the value 'x'.
| x : |
Integer (pass by reference) |
| The value that we replicate. |
| n : |
Natural (pass by value) |
| How often we replicate the value. |
'rep' creates a vector of 'n' elements, each with value 'x', preserving the type of 'x' in the returned vector.
rep(0.1, 3)