stack: Stack a List of Vectors or Matrices

Description Usage Arguments Value

View source: R/utility.R

Description

Takes a list of vectors or matrices and returns one vector or matrix along with a vector that specifies the first indices corresponding to the original elements.

Usage

1
stack(x)

Arguments

x

list of vectors or matrices with the same number of columns

Value

a list containing the stacked object and a vector of indices the specify where each of the original elements begins.


wzhorton/ztools documentation built on Nov. 8, 2019, 1:28 p.m.