Learn R Programming

err (version 0.2.0)

p: Paste

Description

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

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

Functions

  • p0: Paste0

Examples

Run this code
# NOT RUN {
p("The", "red")
p0("ard", "vark")
# }

Run the code above in your browser using DataLab