Wrappers on paste and paste0 to increase the readability of code.

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 string of the pasted values.

Functions

  • p0: Paste0

Examples

p("The", "red")
#> [1] "The red"
p0("ard", "vark")
#> [1] "ardvark"