Learn R Programming

mRchmadness (version 1.0.0)

unfold: 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.