split_chunk: Wrapper Around the Split Function

Description Usage Arguments Value Examples

Description

Splits an object into chunk sizes and puts them into a list

Usage

1
split_chunk(x, chunk.size, type = c("sort", "equal", "rand"))

Arguments

x

The object

chunk.size

The number of elements

type

How should the elements be ordered?

Value

A list

Examples

1
2
3
4
5
libraray(tpfuns)

split_chunk(1:10, 4, "sort")
split_chunk(1:10, 4, "equal")
split_chunk(1:10, 15, "rand")

M-U-UNI-MA/tpfunctions documentation built on May 24, 2019, 7:37 a.m.