Learn R Programming

cwhmisc (version 6.0)

pasteInfix: Paste(infix)

Description

Paste as infix

Usage

a %+% b

Arguments

a, b
objects, will be coerced to character vectors.

Value

see Details.

Details

%+% is currently defined as "%+%" <- function(a,b) paste0(a,b)

See Also

String manipulation with paste, as.character, substr, nchar, strsplit; further, cat which concatenates and writes to a file, and sprintf for C like string construction.

Examples

Run this code
"I am" %+% "very" %+%" hungry" # [1] "I am hungry"

Run the code above in your browser using DataLab