splitN: Split a dataframe every nth row

View source: R/helper.R

splitNR Documentation

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)

Arguments

x

the dataframe

n

the number of rows to keep in each chunk

Value

A list of equal-sized dataframes


actel documentation built on Oct. 19, 2023, 9:08 a.m.