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


hugomflavio/actel documentation built on April 18, 2024, 4:23 a.m.