50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

wrMisc (version 1.15.2)

.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