intersperse: .intersperse

Description Usage Arguments Value Author(s) Examples

Description

create a vector of elements in outer interspersed with elements in inner. Similar to python zip. No element checking.

Usage

1

Arguments

outer

vector that will be the first and last elements

inner

vector that will join elements of outer

Value

A vector interspersing elements of outer and inner. If outer is c(a,b,c) and inner is c(d,e), returns c(a,d,b,e,c)

Author(s)

Helen Lindsay

Examples

1
CrispRVariants:::.intersperse(c(1:10), c(1:9)*10)

CrispRVariants documentation built on Nov. 8, 2020, 11:09 p.m.