slice: Divide a vector into equal-sized chunks, except for maybe the...

Description Usage Arguments Value

Description

Divide a vector into equal-sized chunks, except for maybe the last one

Usage

1
slice(xs, step = 5)

Arguments

xs

a vector

step

the length of a chunk

Value

a list with the elements of 'xs' partitioned into 'step'-sized chunks


tjmahr/lookr documentation built on May 31, 2019, 3:41 p.m.