Learn R Programming

riskRegression (version 2020.12.08)

rowPaste: Collapse Rows of Characters.

Description

Collapse rows of characters. Fast alternative to apply(x,1,paste0,collapse="")

Usage

rowPaste(object)

Arguments

object

A matrix/data.frame/list containing the characters.

Examples

Run this code
# NOT RUN {
M <- matrix(letters,nrow = 26, ncol = 2)
rowPaste(M)
# }

Run the code above in your browser using DataLab