catlist: Concatenate list for output

View source: R/utils2.R

catlistR Documentation

Concatenate list for output

Description

Print a list (usually named) as a character vector or string.

Usage

catlist(x, sep = " = ", collapse = ", ")

Arguments

x

a list to concatenate

sep, collapse

passed to paste controlling the string to separate name from value and list elements, respectively; if collapse is a non character string, the result will be a vector of strings

See Also

iprint

Examples

l <- list(a = 1:3, b = 2, '4')
catlist(l)
catlist(l, collapse = FALSE)
cat(catlist(par()[1:5], sep = ':\n  ', collapse = '\n'))


raredd/rawr documentation built on March 4, 2024, 1:36 a.m.