Learn R Programming

stringformattr (version 0.1.2)

binary-string-concat: Concatenate two strings.

Description

%p% and %s% are wrappers for paste0(..., collapse = '') and paste(..., collapse = ' '), respectively, which combine two character vectors.

Usage

x %p% y

x %s% y

Arguments

x, y

A character vector

Examples

Run this code
# NOT RUN {
'the quick brown fox jum' %p% 'ped over the lazy dog'

gen_sql <- function(column, table) "SELECT" %s% column %s% "FROM" %s% table

# }

Run the code above in your browser using DataLab