intersperse: Intersperse elements of Two+ Vectors

Description Usage Arguments Value Author(s) Examples

View source: R/intersperse.R

Description

Intersperse elements of two+ vectors Given two vectors (one of length i, the other of length j), intersperse will combine the elements of each vector into strings of length i X j, where each element is the concatenation of the elements of the two vectors. See examples.

Usage

1

Arguments

...

the vectors the user wishes to intersperse

Value

a vector of length i X j, containing the interspersed vectors as strings

Author(s)

Dustin Fife

Examples

1
intersperse(LETTERS[1:3], 1:3)

Example output

Loading required package: MASS
[1] "A1" "B1" "C1" "A2" "B2" "C2" "A3" "B3" "C3"

fifer documentation built on May 30, 2017, 7:40 a.m.

Related to intersperse in fifer...