Learn R Programming

kim (version 0.6.1)

pm: Paste for message

Description

Combines the base functions paste0 and message

Usage

pm(..., collapse = NULL)

Value

there will be no output from this function. Rather, a message will be generated from the arguments.

Arguments

...

one or more R objects, to be converted to character vectors. Input(s) to this argument will be passed onto the paste0 function.

collapse

an optional character string to separate the results. Not NA_character_. Input(s) to this argument will be passed onto the paste0 function.

Examples

Run this code
pm("hello", 123)
pm(c("hello", 123), collapse = ", ")

Run the code above in your browser using DataLab