Learn R Programming

Boom (version 0.9.15)

replist: Repeated Lists of Objects

Description

Produces repeated copies of an object.

Usage

RepList(object, times)

Value

Returns a list containing times copies of object.

Arguments

object

The object to be replicated.

times

The desired number of replications.

Author

Steven L. Scott

Examples

Run this code
  alist <- list(x = "foo", y = 12, z = c(1:3))
  three.copies <- RepList(alist, 3)

Run the code above in your browser using DataLab