collapse: Collapse row or column elements of a matrix

Description Usage Arguments Value

View source: R/matstat_utils.R

Description

collapse is a fast version of apply(x, along_dim, paste, collapse = ""). It also works on vectors.

Usage

1

Arguments

x

vector, matrix or data.frame

col

logical value; if TRUE (default), elements are collapsed column-wise.

Value

collapse always returns a character vector.


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.