Learn R Programming

filesstrings (version 0.3.2)

PasteCollapseListElems: Apply paste collapse to each element of a list.

Description

This is the same as doing sapply(char.list, paste, collapse = collapse), it's just faster.

Usage

PasteCollapseListElems(char_list, collapse = "")

Arguments

char_list
A list of character vectors.
collapse
See paste.

Value

A list of character vectors.

Examples

Run this code
PasteCollapseListElems(list(1:3, c("a", 5, "rory")), collapse = "R")

Run the code above in your browser using DataLab