fold: Fold a vector onto itself

View source: R/fold.R

foldR Documentation

Fold a vector onto itself

Description

Fold a vector onto itself

Usage

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


elishayer/mRchmadness documentation built on March 27, 2024, 2:11 p.m.