p: Concatenate Strings

View source: R/p.R

pR Documentation

Concatenate Strings

Description

A wrapper on base::paste().

Usage

p(..., sep = " ", collapse = NULL)

p0(..., collapse = NULL)

Arguments

...

one or more R objects, to be converted to character vectors.

sep

a character string to separate the terms. Not NA_character_.

collapse

an optional character string to separate the results. Not NA_character_.

Value

A character vector.

Functions

  • p0(): A wrapper on base::paste0()

Examples

p("a", "b")
p(c("a", "b"), collapse = " ")
p0("a", "b")
p0(c("a", "b"), collapse = "")

chk documentation built on Oct. 6, 2023, 9:06 a.m.