chunkSplit: Split a vector into chunks of given size

View source: R/chunkSplit.R

chunkSplitR Documentation

Split a vector into chunks of given size

Description

Split a vector into chunks of given size

Usage

chunkSplit(x, n)

Arguments

x

vector to split

n

size of chunks

Value

list of length n

Examples

x <- seq_len(64)
n <- 8
chunkSplit(x,n)


johngodlee/JLGMisc documentation built on June 29, 2024, 9:15 p.m.