.intersperse {CrispRVariants} | R Documentation

## .intersperse

### Description

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

### Usage

    .intersperse(outer, inner)

### 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

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

[Package CrispRVariants version 1.15.0 Index]