combo.paste: Paste all combinations of elements of a set of strings.

Description Usage Arguments Examples

View source: R/combopaste.R

Description

Paste all combinations of elements of a set of strings.

Usage

1
combo.paste(a, b, ..., sep = ".")

Arguments

a

(character) vector 1, left-hand side of output

b

(character) vector 2, right-hand side of output

sep

a character string to separate the results

Examples

1
2
3
4
combo.paste(letters[1:2], letters[3:4])  ##
combo.paste(letters[1:2], letters[3:4], sep = "_")
combo_paste(letters[1:2], letters[3:4])  ## some common options for sep can be specified via the the function name
combopaste3(letters[1:2], letters[3:4], letters[24:26])  ## accommodates upt to three vectors

mcfreund/mikeutils documentation built on May 27, 2021, 5:46 a.m.