Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

21_combine_and_replication_functions

Replication Functions


Description

A combine and rep method for MatrixArray and a function similar to rep_len.

Usage

## S3 method for class 'MatrixArray'
c(x, ...)

## S3 method for class 'MatrixArray'
rep(x, n=1, ..., each=1, times=n)
## S3 method for class 'MatrixArray'
rep2(x, n, ..., n.out=n)

Arguments

x

A 1d MatrixArray object.

...

In the combine function, further MatrixArray objects.
In other functions, ignored.

n

Refer to the each and n.out arguments.

each

The number of times, each element is repeated, consecutively.

times

The number of times, the sequence is repeated, periodically.

n.out

The length of the output object.

Value

A new MatrixArray object.

Examples

rep (eq.brot2 (4), 10)

vectools

Advanced Vector Toolkit

v0.2.0
GPL (>= 2)
Authors
Abby Spurdle
Initial release
2020-10-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.