pstprn: Paste vector elements with parentheses

View source: R/helper.R

pstprnR Documentation

Paste vector elements with parentheses

Description

Formats a vector as "first (second, third, ...)" where remaining elements are comma-separated inside parentheses.

Usage

pstprn(x, compact = FALSE)

pstprn0(x)

Arguments

x

Vector of values (first element shown separately)

Value

Character string with first element followed by remaining elements in parentheses

Functions

  • pstprn0(): Compact version without spaces (for plots)


reportRmd documentation built on March 20, 2026, 5:06 p.m.