Learn R Programming

cwhmisc (version 5.0)

pasteInfix: Paste(infix)

Description

Paste as infix in two variants

Usage

a %&% b

Arguments

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

Value

  • Same as paste(a, b, sep=)

Details

%&% is currently defined as "%&%" <- function(a,b) paste(a,b,sep="")

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" %&% "hungry" # [1] "I am hungry"

Run the code above in your browser using DataLab