fold: Fold a vector onto itself

Description Usage Arguments Value Author(s)

View source: R/fold.R

Description

Fold a vector onto itself

Usage

1
fold(x, block.size = 1)

Arguments

x

a vector

block.size

the size of groups in which to block the data

Value

a new vector in the following order: first block, last block, second block, second-to-last block, ...

Author(s)

sspowers


mRchmadness documentation built on May 30, 2017, 6:49 a.m.