Learn R Programming

wrMisc (version 1.15.3.1)

.pasteCols: Paste-concatenate all columns of matrix

Description

This function allows paste columns

Usage

.pasteCols(mat, sep = "")

Value

simplified/non-redundant vector/matrix (ie fewer lines for matrix), or respective index

Arguments

mat

inital matrix

sep

(character) separator

See Also

unique, nonAmbiguousNum, faster than firstOfRepeated which gives more detail in output (lines/elements/indexes of omitted)

Examples

Run this code
.pasteCols(matrix(11:16,ncol=2), sep="_")

Run the code above in your browser using DataLab