Learn R Programming

Xmisc (version 0.1.0)

dfchunk: Chunk data.frame into parts

Description

Chunk data.frame into parts

Usage

dfchunk(x, n)

Arguments

x
data.frame or matrix
n
numeric, the number of chunks

Value

  • a list of data.frame

Examples

Run this code
dfchunk(iris,n=5)
dfchunk(iris[1:5,],n=5)

Run the code above in your browser using DataLab