f_paste: Concatenate items in vector

View source: R/f - Paste.R

f_pasteR Documentation

Concatenate items in vector

Description

Concatenate items in vector.

Usage

f_paste(
  v.string,
  c.collapse = ",",
  c.and = "and",
  b.capitalize = FALSE,
  b.quotation = FALSE,
  b.sort = TRUE,
  b.unique = FALSE,
  n.top = NULL
)

Arguments

v.string

Vector of items to concatenate.

c.collapse

(default: ",").

c.and

(default: "and").

b.capitalize

(default: FALSE).

b.quotation

(default: FALSE).

b.sort

(default: TRUE).

b.unique

(default: FALSE).

n.top

(default: NULL).

Details

-

Value

Concatenated string.

Author(s)

Pieter Overdevest

Examples

c.string <- f_paste(

       v.string     = c("A", "B", "C"),
       c.collapse   = ",",
       c.and        = "and",
       b.capitalize = FALSE,
       b.quotation  = FALSE,
       b.sort       = TRUE,
       b.unique     = FALSE,
       n.top        = NULL
)

pieterov/generaltoolbox documentation built on Jan. 25, 2025, 10:32 a.m.