Learn R Programming

actel (version 1.3.0)

splitN: Split a dataframe every nth row

Description

Idea from here: https://stackoverflow.com/questions/7060272/split-up-a-dataframe-by-number-of-rows

Usage

splitN(x, n, row.names = FALSE)

Value

A list of equal-sized dataframes

Arguments

x

the dataframe

n

the number of rows to keep in each chunk