chunk2: Split a vector into n chunks

Description

Split a vector into n chunks

Usage

1
chunk2(x, n)

Arguments

x

a vector

n

number of chunks

Author(s)

mathheadinclouds, Dis Shishkov

References

http://stackoverflow.com/questions/3318333/split-a-vector-into-chunks-in-r

Examples

1
chunk2(1:30, 6)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.