Learn R Programming

Xmisc (version 0.2.1)

dfchunk: Chunk data.frame into parts

Description

Chunk data.frame into parts

Usage

dfchunk(x, n, balance.size = TRUE, balance.order = FALSE)

Arguments

x
data.frame or matrix
n
numeric, the number of chunks
balance.size
logical, see vchunk
balance.order
logical, see vchunk

Value

a list of data.frame

Examples

Run this code
dfchunk(iris,n=5)
dfchunk(iris[1:20,],n=3)
dfchunk(iris[1:20,],n=3,balance.order=TRUE)

Run the code above in your browser using DataLab