unfold: Unfold a vector (the inverse of the fold function)

View source: R/unfold.R

unfoldR Documentation

Unfold a vector (the inverse of the fold function)

Description

Unfold a vector (the inverse of the fold function)

Usage

unfold(x, block.size = 1)

Arguments

x

a vector

block.size

the size of groups in which to block the data

Value

a vector in the following order: block 1, block 3, ..., block n-1, block n, block n-2, ..., block 2.

Author(s)

sspowers


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